ColorFontCore
Runtime for a color font (CBDT/sbix bitmap or COLRv0/COLRv1 vector). Plain Core subclass — not a ScriptableObject; constructable on worker threads. Owns the color-glyph rasterization pipeline: color-format detection, FreeType/Blend2D rendering into the shared color atlas, and color glyph metrics. The system emoji font (EmojiFont) and the UniTextColorFont asset are both built on this base.
Derived Types(1)
Types that inherit from ColorFontCore.
public static ColorFontCore CreateFromPath()Creates a color-font runtime from a font file path (.ttf,.ttc,.otf).
public static ColorFontCore CreateFromData()Creates a color-font runtime from raw font file bytes. Detects the colour format (sbix, CBDT, COLRv0/v1) and picks the closest bitmap strike to pixelSize.
Loads and configures this runtime from raw font bytes: detects the colour format (sbix, CBDT, COLRv0/v1), picks the closest bitmap strike to pixelSize, builds face metrics, and creates the shared color atlas. Returns false when the bytes cannot be loaded. Shared by the system emoji font and the color-font asset.
public override UniTextFontError LoadFontFace()protected GlyphMetrics ComputeGlyphMetrics()