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
ParameterTypeDescription
unicodeSystem::StringUnicode string.
fontSizedoubleFont size.

ReturnValue

String width.

See Also

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)
ParameterTypeDescription
charCodesSystem::ArrayPtr<uint32_t>Text string represented as array of character codes.
fontSizedoubleFont size.

ReturnValue

String width.

See Also