Skip to content

PdfStandardFont.GetCharWidth Method

GetCharWidth(Char)

Gets the width of the given character when drawn with this font object.

C#
public override double GetCharWidth(Char charCode)

Parameters

charCode Char

the char to get its width

Remarks

To scale this value to font's current size, divide it by 1000 and multiply it by font size. For example, if font size is 20pt, then the width, in points, of a character for this font is 20 * GetCharWidth( charCode ) / 1000.