Back to API Reference
Class
UniTextFontProvider
sealed
Manages font assets and provides font lookup services for text rendering.
Remarks
The font provider handles: Primary font and fallback font resolution Font scaling based on requested font size Glyph caching in texture atlases Font data access (glyph lookup, font data bytes) Font family lookup for variant/variable font resolution Uses
SharedFontCache for fast codepoint-to-font mapping.public UniTextFont PrimaryFont{ get }Gets the main (primary) font asset.
[ctor]public UniTextFontProvider(UniTextFontStack fontStack, float fontSize)Initializes the font provider with the specified fonts.
public static int GetFontId(UniTextFont font)Gets the unique font identifier for a font asset.
public void RegisterFontAsset(int fontId, UniTextFont font)Registers a font asset with the provider.
public UniTextFont GetFontAsset(int fontId)Gets a font asset by its identifier.
