Back to API Reference
Struct

FaceInfo

sealed

Font face metrics from OpenType/TrueType tables. All metric values are in font design units unless noted otherwise.

public int faceIndex

Index of this face within a font collection (TTC).

public string familyName

Font family name from the name table.

public string styleName

Font style name (Regular, Bold, Italic, etc.).

public int weightClass

CSS font-weight value from OS/2 usWeightClass (100-900). 0 if unavailable.

public bool isItalic

Whether this font face is italic (from FreeType style_flags).

public int unitsPerEm

Font design units per em (typically 1000 for CFF, 2048 for TrueType).

public int lineHeight

Distance between consecutive baselines (hhea table).

public int ascentLine

Top of the tallest glyph, positive above baseline (hhea ascender).

public int capLine

Top of capital letters (OS/2 sCapHeight).

public int meanLine

Top of lowercase letters, x-height (OS/2 sxHeight).

public int descentLine

Bottom of the deepest descender, negative below baseline (hhea descender).

public int superscriptOffset

Vertical offset for superscript glyphs (OS/2 ySuperscriptYOffset).

public int superscriptSize

Suggested point size for superscript glyphs (OS/2 ySuperscriptYSize).

public int subscriptOffset

Vertical offset for subscript glyphs (OS/2 ySubscriptYOffset).

public int subscriptSize

Suggested point size for subscript glyphs (OS/2 ySubscriptYSize).

public int underlineOffset

Vertical position of the underline relative to baseline (post table).

public int underlineThickness

Thickness of the underline stroke (post table).

public int strikethroughOffset

Vertical position of the strikethrough relative to baseline (OS/2 yStrikeoutPosition).

public int strikethroughThickness

Thickness of the strikethrough stroke (OS/2 yStrikeoutSize).

public int tabWidth

Width of a tab character, derived from space advance.