Back to API Reference
Class

UniTextColorFont

Inherits:UniTextFont

A color-font asset — embedded color-font bytes (CBDT/sbix bitmap or COLRv0/COLRv1 vector) rendered through the shared color-glyph pipeline. The color analog of UniTextFont: add it to a Font Stack like any other font and it serves the codepoints it covers via the normal resolution chain. The always-on system emoji font (EmojiFont) stays the privileged provider for emoji-presentation codepoints.

Remarks

All color fonts share one color atlas whose tile pixel size grows to fit the largest color font loaded. Rasterization runs through FreeType/Blend2D on desktop, editor, iOS and Android. WebGL has no Blend2D, so an embedded color-font asset does not rasterize there (color-presentation codepoints fall back to the system emoji font; other color glyphs do not render).
public int ColorPixelSize{ get; set }

Pixel size at which this font's color glyphs rasterize. Bitmap fonts snap to the nearest strike; vector fonts render at this size.

protected override void OnEnable()
protected override Core BuildRuntime()
protected override Core CreateRuntime()