Aspose::Font::Ttf::TtfFontMetrics::MeasureString method
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++
TtfFontMetrics::MeasureString(System::String, double) method
Sets glyph width.
double Aspose::Font::Ttf::TtfFontMetrics::MeasureString(System::String unicode, double fontSize) override
| Parameter | Type | Description |
|---|---|---|
| glyphId | System::String | Glyph identifier. |
| value | double | New width |
ReturnValue
String width.
Remarks
Measures string and returns string width.
See Also
- Class String
- Class TtfFontMetrics
- Namespace Aspose::Font::Ttf
- Library Aspose.Font for C++