THotPDF.DrawRegisteredColorGlyph

Version 2.1111.0 adds finite concentric radial fields under huge affine transforms, retaining source distance, colorline direction and strictly positive-radius coverage within the documented numerical and reader limits

Version 2.1110.0 adds exact positive-scale sweep normalisation whilst preserving original centres, clipping and transparency capture

Version 2.1109.0 adds finite-root multi-branch affine recovery, preserving original layer/composite scheduling, clip capture positions and finite referenced components

Version 2.1108.0 adds exact dyadic-grid linear-field recovery when the earlier closest-point and axis-intercept representations are unavailable, preserving the original colour stops and alpha

Version 2.1107.0 adds exact private Double composition and root-space linear-field recovery, preserving changing gradients even when a huge composed matrix cannot be converted safely to floating point. General field and reader limits remain documented separately

Version 2.1106.0 adds exact contiguous affine composition and proved invariant gradient fields, restoring finite colour-glyph coverage without crossing glyph or group boundaries. General huge noninvariant fields and retained reader differences remain separate

Version 2.1105.0 preserves genuine quadratic and cubic coverage through deep finite uniform-paint transforms, retaining exact TrueType component coordinates until bounded root-frame emission. General nonuniform paint fields and retained reader-boundary differences remain open

Version 2.1104.1 restores partially visible polygon coverage under deep finite transforms without huge reader matrices, while retaining the original root group, nested clip intersections and known-empty output. This does not close partial curves, general paint fields or all reader boundary differences

Version 2.1104.0 preserves proved finite root-clip coverage for transformed uniform COLRv1 paints. The completed paint retains its original root transparency group and caller opacity; partial coverage and nonuniform paint fields remain separate

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

Native COLR glyph placement uses its explicit position and font size independently of inherited Tz, Ts and Tr text state, restoring that state afterward. COLRv0 layers use one isolated DeviceRGB surface when transparency is available, retaining one completed-glyph application of caller alpha, blend mode and soft mask. Opaque direct output remains available under strict profiles or a locked PDF version below 1.4

Version 2.1100.0 adds explicit COLR foreground colour 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

Draws one colour glyph through native COLR v0, bounded COLR v1 paint graphs, restricted safe SVG vectors, CBDT/CBLC strikes, or sbix strikes, then uses the configured rasterisation event when a document requires an unsupported operation

Raw path ordering

When combining this method with AppendRawContent, finish any current raw path before drawing the glyph, then construct subsequent raw paths after the call. Graphics-state isolation does not preserve an unfinished path across a Form invocation

Declaration

function DrawRegisteredColorGlyph(Page: THPDFPage; CodePoint: Cardinal; X, Y: Single; const FontName: AnsiString; FontSize: Single; PaletteIndex: Integer= 0; TargetPixelsPerEm: Integer= 0): Boolean;

The method returns False when the glyph has no supported colour representation or rasterisation fails

A supported COLRv1 linear paint with coincident or parallel geometry is transparent, including a single-stop paint; the supported graph can return True and retain its other layers without drawing that paint

Sweep wedge alpha state, three-point linear geometry, radial colours, paint-wrapper transforms, glyph baselines and checked font embedding describe the Windows authoring profile and its remaining coordinate, sampling and shared-alpha boundaries

Native linear and radial gradients support varying stop alpha within their documented geometry and sampling limits, using premultiplied linear interpolation and one completed-surface luminosity mask. Native sweep wedges isolate their graphics state so later opaque samples do not inherit preceding nonopaque sample alpha; complete sweep geometry and broader conformance remain separate work