TtfFontMetrics.MeasureString

MeasureString(string, double)

Measures string and returns string width.

public override double MeasureString(string unicode, double fontSize)
ParameterTypeDescription
unicodeStringUnicode string.
fontSizeDoubleFont size.

Return Value

String width.

See Also


MeasureString(uint[], double)

Measures text represented as array of character codes and returns string width.

public double MeasureString(uint[] charCodes, double fontSize)
ParameterTypeDescription
charCodesUInt32[]Text string represented as array of character codes.
fontSizeDoubleFont size.

Return Value

String width.

See Also