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)
参数类型描述
charCodesSystem::ArrayPtr<uint32_t>以字符代码数组表示的文本字符串。
fontSizedoubleFont 大小。

ReturnValue

字符串宽度。

另见

TtfFontMetrics::MeasureString(System::String, double) method

测量字符串并返回字符串宽度。

double Aspose::Font::Ttf::TtfFontMetrics::MeasureString(System::String unicode, double fontSize) override
参数类型描述
unicodeSystem::StringUnicode 字符串。
fontSizedoubleFont 大小。

ReturnValue

字符串宽度。

另见