Docsv2.12.12
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, from the metric pair FreeType selects: typo when the font sets USE_TYPO_METRICS (useTypoMetrics), otherwise hhea.

public int ascentLine

Baseline to top of the tallest glyph, positive. Typo ascender when the font sets USE_TYPO_METRICS, otherwise 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

Baseline to bottom of the lowest glyph, negative. Typo descender when the font sets USE_TYPO_METRICS, otherwise hhea descender.

public int typoAscent

Typographic ascent (OS/2 sTypoAscender): the designer's intended content-box top, tighter than ascentLine for fonts that pad hhea. 0 when the font has no OS/2 table.

public int typoDescent

Typographic descent (OS/2 sTypoDescender), negative below baseline. 0 when unavailable.

public int typoLineGap

Typographic line gap (OS/2 sTypoLineGap): leading the designer suggests between lines.

public int winAscent

Windows clip-box ascent (OS/2 usWinAscent), positive: the extent Windows GDI/DirectWrite will not clip. 0 when unavailable.

public int winDescent

Windows clip-box descent (OS/2 usWinDescent), stored negative below baseline. 0 when unavailable.

public bool useTypoMetrics

Font sets OS/2 USE_TYPO_METRICS (fsSelection bit 7): consumers should prefer the typo metrics for line layout.

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.