THotPDF.OnColorGlyphRasterize

A handler can read ColorGlyphForegroundColor and ColorGlyphForegroundAlpha from its THotPDF Sender and pass THPDFOpenTypeColorForeground to an AtAxes overload. The existing event signature and font-byte contracts remain; see COLR foreground colour and alpha

A complete static colour instance is supplied when available. If registration used outline-only instancing because colour values exceed static fields, FontBytes contains the original variable colour font instead. GetRegisteredVariableFontAxes returns the frozen selection; use an AtAxes inspection function when parsing a callback font that still contains fvar. See selected-axis colour programmes and static outlines

Rasterises colour assets that the native drawing path does not decode directly

Declaration

property OnColorGlyphRasterize: THPDFColorGlyphRasterizeEvent read FOnColorGlyphRasterize write FOnColorGlyphRasterize;

The event receives the format as a THPDFOpenTypeColorFormat value (otcfNone, otcfCOLRv0, otcfCOLRv1, otcfCBDT, otcfSVG, or otcfSBIX), the source font, asset bytes, glyph ID, palette, and target size, and returns RGBA pixels