Native COLRv1 Solid Composite Colours

Version 2.1167.0 improves default native output for bounded solid COLRv1 graphs containing source-atop, destination-atop, xor or plus composition

DrawRegisteredColorGlyph selects this path automatically when the complete graph and its geometry can be proved eligible; no raster callback or compatibility-option change is required

Colour arithmetic

Palette colours are decoded from sRGB before the complete graph is evaluated using linear-light premultiplied colour and the authored alpha values

The final straight colour is encoded once and final opacity is applied through a single surface; this avoids repeated low-precision mask arithmetic inside the PDF reader

Layer order, nested Porter-Duff operations and transparent or opaque operands remain part of the same calculation; the caller's alpha, blend state and external clipping are applied once to the completed glyph

The existing COLRv1DeviceSpaceGroupBlend option keeps its separate compatibility semantics and is not required for this default linear-light path

Eligible geometry

The graph may contain solid paints, layers, Porter-Duff operations, rectangular COLR clip boxes and real glyph contours made up of horizontal and vertical straight segments

Multiple contours and holes follow the outline's nonzero winding rule, with supported axis-preserving transforms including reflections and axis exchange

Every geometry boundary defines a constant-colour region; bounding boxes do not stand in for actual glyph contours, and the output carries native vector shading rather than an image of sampled pixels

Limits and recovery

Preparation bounds graph occurrences, outline edges, region count, exact arithmetic, shading data and work; cancellation and memory admission retain their existing contracts

The completed resources publish together, preserving document and page resources when preparation or publication fails

Curved outlines, nonorthogonal geometry, varying-colour gradients, other blend operators and graphs beyond the supported resource envelope continue along the existing native paths

Those paths keep their own compatibility limits; this release does not claim complete colour equivalence for every legal COLRv1 graph

See COLRv1 Gradient Painting and the OpenType compositing model