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. A glyph an effect decorates also gets a silhouette field in the SDF atlas, derived from the same bitmap's alpha when it is packed.
Derived Types(2)
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 virtual GlyphMetrics ComputeGlyphMetrics()Design-unit metrics of a rendered bitmap. The bitmap's pixel-to-design ratio follows the colour format: the COLRv1 render size, the sbix strike, the CBDT advance, or the requested pixel size.
