Aspose::Font::Ttf::TtfFontMetrics::MeasureString method
TtfFontMetrics::MeasureString(System::String, double) method
Measures string and returns string width.
double Aspose::Font::Ttf::TtfFontMetrics::MeasureString(System::String unicode, double fontSize) override
Parameter | Type | Description |
---|---|---|
unicode | System::String | Unicode string. |
fontSize | double | Font size. |
ReturnValue
String width.
See Also
- Class String
- Class TtfFontMetrics
- Namespace Aspose::Font::Ttf
- Library Aspose.Font for C++
TtfFontMetrics::MeasureString(System::ArrayPtr<uint32_t>, double) method
Measures text represented as array of character codes and returns string width.
double Aspose::Font::Ttf::TtfFontMetrics::MeasureString(System::ArrayPtr<uint32_t> charCodes, double fontSize)
Parameter | Type | Description |
---|---|---|
charCodes | System::ArrayPtr<uint32_t> | Text string represented as array of character codes. |
fontSize | double | Font size. |
ReturnValue
String width.
See Also
- Typedef ArrayPtr
- Class TtfFontMetrics
- Namespace Aspose::Font::Ttf
- Library Aspose.Font for C++