Back to API Reference
Class
FontModifier
Overrides the font used for a text range by selecting a FontFamily from the component's UniTextFontStack by its name.
Remarks
Parameter: the target family name (case-sensitive). Example: <font=pixel>Score</font>. Priority: a matched font wins over
preferredLanguage selection and over the regular FontStack fallback chain. If the chosen family's primary lacks a glyph for a codepoint, the normal fallback chain still kicks in for that codepoint. If the name is not found in the FontStack, a warning is logged once per unresolved name and affected codepoints render with the default fallback behavior.