Aspose::Font::Ttf::TtfFontMetrics::MeasureString method
TtfFontMetrics::MeasureString(System::ArrayPtr<uint32_t>, double) method
测量以字符代码数组表示的文本并返回字符串宽度。
double Aspose::Font::Ttf::TtfFontMetrics::MeasureString(System::ArrayPtr<uint32_t> charCodes, double fontSize)
| 参数 | 类型 | 描述 |
|---|---|---|
| charCodes | System::ArrayPtr<uint32_t> | 以字符代码数组表示的文本字符串。 |
| fontSize | double | Font 大小。 |
ReturnValue
字符串宽度。
另见
- Typedef ArrayPtr
- Class TtfFontMetrics
- Namespace Aspose::Font::Ttf
- Library Aspose.Font for C++
TtfFontMetrics::MeasureString(System::String, double) method
测量字符串并返回字符串宽度。
double Aspose::Font::Ttf::TtfFontMetrics::MeasureString(System::String unicode, double fontSize) override
| 参数 | 类型 | 描述 |
|---|---|---|
| unicode | System::String | Unicode 字符串。 |
| fontSize | double | Font 大小。 |
ReturnValue
字符串宽度。
另见
- Class String
- Class TtfFontMetrics
- Namespace Aspose::Font::Ttf
- Library Aspose.Font for C++