TtfFontMetrics.MeasureString
MeasureString(string, double)
Measures string and returns string width.
public override double MeasureString(string unicode, double fontSize)
Parameter | Type | Description |
---|---|---|
unicode | String | Unicode string. |
fontSize | Double | Font size. |
Return Value
String width.
See Also
- class TtfFontMetrics
- namespace Aspose.Font.Ttf
- assembly Aspose.Font
MeasureString(uint[], double)
Measures text represented as array of character codes and returns string width.
public double MeasureString(uint[] charCodes, double fontSize)
Parameter | Type | Description |
---|---|---|
charCodes | UInt32[] | Text string represented as array of character codes. |
fontSize | Double | Font size. |
Return Value
String width.
See Also
- class TtfFontMetrics
- namespace Aspose.Font.Ttf
- assembly Aspose.Font