THotPDF.GetRegisteredColorGlyphInfo
Version 2.1101.0 adds native CFF2 contour fills and clips, a public outline-command extractor and per-glyph mixed COLR lookup. A missing modern definition can use legacy layers in a version 1 table; an invalid selected modern graph remains rejected. The directory limit is independent of the single-graph budget
Version 2.1100.0 adds explicit COLR foreground color and alpha through ColorGlyphForegroundColor and ColorGlyphForegroundAlpha, plus THPDFOpenTypeColorForeground overloads for both AtAxes inspection functions. Palette entry 0xFFFF resolves with foreground RGBA before local alpha is quantized; ordinary CPAL entries and the legacy black/255 defaults remain
For internally instantiated variable COLR fonts, the original color program is evaluated at the coordinates captured by RegisterUnicodeTTF. Later pending-axis changes do not alter this registered selection; fractional paint values retain their evaluated precision. See selected-axis color programs and static outlines for the outline/color separation and provider contract
Inspects color layers or an embedded color asset for one Unicode code point in the registered font
Declaration
function GetRegisteredColorGlyphInfo(CodePoint: Cardinal; PaletteIndex: Integer; TargetPixelsPerEm: Integer; out Info: THPDFOpenTypeColorGlyphInfo): Boolean;
COLR v0 returns palette-resolved layers as a THPDFColorGlyphLayerArray, where each THPDFColorGlyphLayer carries the layer GlyphID, resolved Red, Green, Blue, and Alpha bytes, and the originating PaletteEntryIndex; COLR v1 returns a validated flat paint DAG and units per em, SVG returns its document bytes, while CBDT/CBLC and sbix return the closest bitmap strike with ppem, MIME type, and baseline origin offsets