Docsv2.12.12
Back to API Reference
Class

UniTextFontStack

Ordered list of font families plus an optional fallback stack. The first family's primary provides strut metrics (line height, ascent, descent). Face matching uses pre-computed lookup tables with CSS Fonts Level 4 §5.2 weight matching.

public UniTextFont PrimaryFont{ get }

Primary font asset of the first family.

public bool HasFaces{ get; set }

True if any family in the resolved chain carries variant faces or a variable font.

public bool TryGetFamilyByName()

Looks up a family by its name across this stack and its fallback chain. Case-sensitive, first-wins.

public FontFamily[] families

Ordered list of font families. The first family's primary is the head of codepoint resolution and supplies strut metrics.

public UniTextFontStack fallbackStack

Optional fallback stack searched after this stack's own families.