Skip to content

PdfTrueTypeFont.GetGlyphEmWidth Method

GetGlyphEmWidth(Int32)

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

C#
public int GetGlyphEmWidth(int glyph)

Parameters

glyph Int32

the index of the glyph to get its width

Remarks

To scale this value to font's current size, divide it by 2048 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 * GetGlyphEmWidth(glyph) / 2048.