Native COLRv1 Gradient Composite Colors

Version 2.1168.0 extends complete native color evaluation to eligible COLRv1 graphs containing continuous common-axis linear gradients and source-atop, destination-atop, xor or plus composition

DrawRegisteredColorGlyph selects the path automatically after proving the complete graph eligible; no raster callback or compatibility-option change is required

Version 2.1175.0 adds a separate bounded path for graphs that combine horizontal and vertical smooth Pad gradients in the same composition

Color and opacity

The writer decodes palette colors from sRGB and evaluates the complete graph in linear-light premultiplied color with the authored alpha values

It bounds the final encoded color and opacity over each continuous region before emitting paired native vector fields; the approximation follows the source gradient rather than a fixed grid of sampled pixels

The complete RGB surface is assembled in an isolated group before its final opacity mask is applied once, preserving the result when a reader internally subdivides varying-color triangles

Layer order, nested Porter-Duff operations, transparent endpoints, local clipping and caller opacity remain part of the supported drawing workflow

Eligible graphs

Supported paints include solids and Pad linear gradients whose varying directions share one horizontal or vertical axis after axis-preserving transforms, including reflections and axis exchange

Geometry may contain rectangular COLR clip boxes and actual glyph contours made of horizontal and vertical straight segments, including nonzero-winding holes

Nondecreasing color-stop offsets are supported; source clipping, distinct stop positions and contour boundaries define separate regions without replacing the outline with its bounding box

Common-axis Repeat and Reflect composites

Version 2.1180.0 adds bounded native color evaluation for extended composite graphs containing Repeat and Reflect linear gradients along one shared horizontal or vertical axis

Negative phases, shifted stop intervals, reversed spans, axis exchange and repeated-offset source stops retain their original periodic color and opacity

The complete graph keeps linear-light composition, palette and stop alpha, supported orthogonal contours and local clips; caller opacity applies once to the completed glyph

Source-driven vector fields preserve internal material and period transitions without spreading a color ramp across a real jump or requiring a raster callback

A separate support field keeps the completed opacity inside the original visible regions, including transparent cells beyond their outer edges

Admission retains the existing region, work, memory, object and complete representation limits, including inline function dictionaries; a failed certificate keeps the established recovery path

This path requires the admitted binary64 interval execution environment; other runtime environments retain their existing recovery path

The runtime probe is HPDFHasBinary64FloatEnvironment from HPDFObjs: on 64-bit x86 targets it reads the live MXCSR and 8087 control state, checks the rounding mode, and optionally the precision and exception-mask bits, so a changed floating-point environment keeps the fast interval paths disengaged

Ideal field bounds are separate from reader lookup, floating-point branch selection and exact-edge anti-aliasing; the finite profile does not promise identical rasterization at every transform, scale or discontinuity

Mixed horizontal and vertical gradients

A source-atop, destination-atop, xor or plus graph can contain both horizontal and vertical Pad gradients after supported axis-preserving transforms

The writer evaluates each gradient in its own direction and bounds the complete color and opacity field over rectangular regions before emitting two triangles per region

The mixed-axis path supports smooth stop sequences, rectangular local clips and actual orthogonal glyph contours with nonzero-winding holes

Palette colors retain linear-light composition, while the caller's opacity applies to the completed glyph

Subdivision follows certified source variation and keeps the existing work, cell, byte, memory and object limits; inputs outside those bounds retain their existing recovery path

Existing admitted same-axis graphs use their previous path and output representation

Oblique and skewed linear gradients

Version 2.1176.0 adds bounded native composition for smooth Pad gradients whose three defining points produce an oblique or skewed direction

The writer preserves the three-point projection along the first-to-third-point line, including gradient-only affine transforms, rather than treating every gradient as a perpendicular projection onto its first-to-second-point line

Exact parameter ranges and outward error bounds drive subdivision, with conservative interval bounds when a region crosses a smooth stop

The complete graph retains linear-light color, authored opacity, rectangular local clips, orthogonal glyph holes and caller opacity under the existing authoring limits

Gradient transforms may be general affine transforms, while actual glyph and clip contours must still satisfy the supported horizontal and vertical geometry profile

Already admitted same-axis and mixed horizontal/vertical graphs retain their earlier paths

Bounded regular radial gradients

Version 2.1177.0 adds native evaluation of two-circle Pad gradients inside bounded extended composite graphs

The writer retains the greatest gradient parameter with a positive original radius, including decreasing-radius, equal-radius strip and tangent linear-root configurations

General gradient-only affine transforms map the sampling region back to the original circles, preserving elliptical and skewed appearances without approximating them as circles with one scaled radius

Accepted cells have certified color and opacity bounds under the existing authoring limits, with authored alpha, orthogonal local clips and caller opacity retained

This path covers regions where the complete graph can be certified within those limits; unsupported radial support boundaries remain unfinished compatibility work and may retain the older output path

It does not establish complete general radial composite compatibility or a shared reader anti-aliasing rule at singular boundaries

Center-containing concentric gradients

Version 2.1177.1 keeps eligible concentric Pad composites in the native path when their center lies inside the glyph

Local adaptive regions concentrate subdivision near the center while preserving the existing region, coordinate, byte, work, memory and object limits

The complete encoded color and opacity fields retain independent continuous error bounds, including non-smooth center-touching regions and their one-sided limits

The isolated exact center point has no positive-radius circle in the strict source algorithm; its pointwise value and universal reader anti-aliasing equivalence remain separate compatibility boundaries

Nonconcentric support rays and strip boundaries that the complete graph cannot certify still retain their existing recovery path

Source-atop radial support cones

Version 2.1177.2 preserves the uncovered backdrop in eligible source-atop composites whose radial source covers only a cone-shaped part of the glyph

The original two-circle family determines source coverage independently of the color calculation, so colors are not interpolated across the support boundary

The bounded profile has a horizontal increasing-radius Pad source with two stops and one constant positive alpha, including an opaque source, over a vertical two-stop Pad backdrop with constant positive alpha

The source circles and the rectangular effective clips stay authored, the source clip covers the backdrop clip and exact parameter normalization, color bounds and the existing resource limits determine admission

Version 2.1197.2 keeps that native cone when the source transform contributes a linear part other than identity, including scaling, rotation, axis exchange and shear

The cone geometry stays in paint space while the form matrix carries the linear part back to glyph space, so the authored coverage, backdrop and opacity survive instead of falling back to the older function-based path

Identity and translation-only source transforms keep their previous output, and the same resource limits still determine admission

Uncovered regions retain the backdrop, while supported regions retain linear-light source-atop color and the destination opacity; caller opacity applies to the completed glyph once

Qualifying output stays native and vector-based without a raster callback or an increase in the renderer's default operation budget

Already admitted regular and concentric fields retain their previous mesh path, and cancellation or later resource edits preserve transaction rollback

Version 2.1178.8 improves eligible near-ray colors by keeping the radial color field on its canonical normalized horizontal domain while the physical bounds and original-circle mask retain authored coverage

The color formula, vertical backdrop interval, source geometry, palette and both opacity stages remain the same; the representation lets readers approximate the field on a stable normalized extent

The finite compatibility repair covers the retained shifted-center near-ray case and its original cone controls; arbitrary matrices, exact-ray anti-aliasing and all subpixel positions remain separate compatibility boundaries

Regular sweep gradients

Version 2.1178.0 adds bounded native vector composition for eligible smooth Pad sweep gradients, including reverse angle spans, angles outside one revolution and general gradient-only affine transforms

The original center and selected angles determine the angular parameter; the writer preserves the signed span and evaluates the complete graph in linear-light premultiplied color before encoding the final RGB and opacity fields

Outward angular and derivative bounds drive local subdivision under the existing authoring limits, retaining rectangular clips, orthogonal glyph holes and caller opacity

Regular angular regions away from the center and zero-angle branch cut can use this path when their complete color and opacity fields pass admission; center and zero-ray boundaries, arbitrary equal-angle Pad sectors and repeated-offset sweep jumps remain separate compatibility work

THPDFCOLRv1Paint appends StartAngleFraction, EndAngleFraction and HasAngleFractions to retain selected values before conversion to radians; these are biased half-turn fractions, so the selected angle in turns is (fraction + 1) / 2

The existing StartAngle and EndAngle fields retain their Single-precision radian values; variable fractions retain the available Double variation result rather than claiming exact real-number variation arithmetic

The public record size changes in this release: rebuild dependent Pascal units, packages and C++Builder libraries and regenerate headers together before using the new fields

Equal-angle Pad sectors

Version 2.1178.1 preserves the first and last colors of eligible Pad sweep gradients when their selected start and end angles are equal

Quarter-turn sector boundaries at 90, 180 and 270 degrees support axis-preserving affine transforms, including reflections and axis exchange; exact transformed-center cuts retain each sector's own color and opacity

Equal angles at or below zero degrees use the last color throughout the sampled revolution, while equal angles at or above 360 degrees use the first color

The complete graph retains linear-light Porter-Duff composition, independently authored endpoint opacity, actual orthogonal holes and caller opacity; intermediate stops, including repeated offsets, do not change the collapsed first and last colors

Each open region and its saved boundary vertices use the same one-sided sector value, avoiding a color ramp across the discontinuity and retaining the existing resource and cancellation limits

Already admitted regular sweep fields retain their decoded RGB and opacity mesh bytes

The oblique source-atop extension below covers a separate rectangular profile; other arbitrary equal-angle graphs, exact shared-ray and center-point values and universal reader anti-aliasing equivalence remain separate compatibility boundaries

Oblique equal-angle source-atop fields

Version 2.1178.2 preserves eligible equal-angle source-atop colors under general gradient-only affine transforms, including reflections, shear and non-quarter-turn selected angles

The original source center and counter-clockwise angle determine which endpoint color applies; the saved predicate retains exact source-coordinate coefficients and the selected threshold without shifting the authored ray

The source has a rectangular effective clip covering a vertical two-stop Pad backdrop with constant positive opacity, and the backdrop's visible rectangle lies within its stop interval

Independent first and last source opacity, including transparent and opaque endpoints, and repeated endpoint offsets retain their original composition; the completed destination opacity and caller opacity each apply once

Qualifying output stays native and vector-based through a compact source-driven field, preserving linear-light composition without interpolating colors across the sector boundary

Admission requires exactly representable source predicate coefficients and threshold, bounded intermediates and certified saved color coefficients over the complete backdrop interval

The admitted color range stays in the nonlinear sRGB segment; darker ranges, source holes, other operators and broader graph combinations retain their existing paths and separate compatibility scope

Saved-field color bounds within a selected sector are separate from the conditional floating-point consumer model; that model does not establish every reader's matrix, angle, power or edge behavior

Existing authoring and renderer limits are unchanged, previously admitted sweep fields retain their earlier output, and later resource mutations and publication cancellation retain transaction rollback

Exact shared-ray and center values and universal anti-aliasing equivalence remain unfinished compatibility work

Destination-atop source coverage

Version 2.1178.3 preserves eligible equal-angle destination-atop fields over the complete source rectangle, including the source-only area outside the backdrop

The first and last source alpha values must be the same positive value; that source opacity applies once to the completed glyph, while the overlap retains the destination-atop colors and the outer regions retain the source colors

The source rectangle covers a vertical two-stop Pad backdrop with constant positive alpha, and the overlap stays within the backdrop stop interval and the admitted nonlinear sRGB range

Exact nonoverlapping rectangular regions cover the source outside the backdrop, including coincident bounds and edges with no outer region; each region has its own bounded native field window

Reflections, non-quarter-turn angles, repeated endpoint stops and caller opacity retain the original source-coordinate and compositing semantics

Equivalent unit multiplications are removed from the destination-atop calculator without changing its predicate, allowing the qualified full-source profile to fit the unchanged native operation budget

Previously admitted source-atop fields retain their saved output; publication cancellation and mutations of every new shading dictionary retain transaction rollback

Other graph combinations remain separate compatibility work, along with exact shared-ray, center and universal reader anti-aliasing behavior

Xor source coverage and opacity

Version 2.1178.4 preserves eligible equal-angle xor fields across the complete source, retaining source-only color and opacity outside the backdrop

The first and last source alpha values must be the same positive value, and the source rectangle covers a vertical two-stop Pad backdrop with constant positive alpha

Within the overlap, opacity is SA*(1-DA)+DA*(1-SA); source-only regions keep SA, so neither region is assigned the other region's opacity

Overlap colors retain the normalized xor mixture in linear light, while outer regions retain the original source colors; caller opacity applies to the completed glyph once

The admitted alpha and rectangle values must be represented exactly, the overlap opacity must be positive, and the existing selected-angle, affine-predicate and nonlinear sRGB color bounds still determine admission

Reflected transforms, non-quarter-turn angles, repeated endpoint stops and coincident rectangles retain their original source semantics without increasing resource limits

Previously admitted source-atop and destination-atop fields retain their saved output, and both shading and opacity resources retain mutation rollback and publication cancellation

Other graph or coverage combinations, exact shared-ray and center values, and universal reader mask or anti-aliasing behavior remain separate compatibility work

Opacity varying between angular sectors

Version 2.1178.5 preserves eligible destination-atop and xor fields when the first and last source stops have different positive alpha values

The original selected angle determines both color and opacity; each angular sector keeps its own source alpha across the complete source rectangle

Destination-atop keeps the selected source alpha in the overlap and source-only regions; xor uses SA*(1-DA)+DA*(1-SA) within the overlap and keeps SA outside the backdrop

Color retains the corresponding premultiplied linear-light mixture, including the normalized xor weights, and caller opacity applies to the completed glyph once

The bounded profile has a source rectangle covering a vertical two-stop Pad backdrop with constant positive alpha; exact source-coordinate transforms, positive overlap alpha and the existing nonlinear sRGB color bounds determine admission

Source-coordinate fields retain reflected transforms, non-quarter-turn selected angles, repeated endpoint stops and coincident bounds without increasing the default native rendering budgets

Previously admitted fixed-opacity source-atop, destination-atop and xor fields retain their saved output; color and opacity resource edits and publication cancellation retain transaction rollback

Broader stop sequences and graph or coverage combinations, exact angular boundaries and center values, and universal matrix, mask and anti-aliasing equivalence remain separate compatibility work

Sweep centers, angular seams and repeated stops

Version 2.1178.6 preserves eligible source-atop sweep colors across a center-containing field and the positive-X seam, including the genuine discontinuity between the final and first angular colors

Repeated stop offsets retain their stable order: each interval uses the last stop at its lower offset and the first stop at its upper offset, and an exact offset selects the following interval

Below the first offset the first color is retained, while the final offset and later positions retain the last color; no transition is inserted across a jump

The original selected angle is sampled from zero up to one revolution, with start and end angles kept in their authored range, including reverse spans and angles beyond one revolution

The bounded profile requires one constant positive source alpha and a source rectangle covering a vertical two-stop Pad backdrop with constant positive alpha; exact source transforms and per-interval color bounds determine admission

The completed field evaluates the corresponding premultiplied source-atop color before encoding, retains the backdrop opacity and applies caller opacity once

Previously admitted sweep meshes and equal-angle fields keep their earlier output; default budgets, direct-resource mutation rollback and publication cancellation remain intact

The calculator remains defined at its center through a zero-angle convention; this does not assign a unique normative center color to all converging rays or establish arbitrary reader seam, jump or anti-aliasing equivalence

Other operator, opacity, coverage and graph combinations remain separate compatibility work

Sweep colors with varying source opacity

Version 2.1178.7 preserves eligible source-atop sweep colors when source opacity varies between stops, including center-containing seams and repeated-offset color or opacity jumps

The complete source-atop mixture follows both the premultiplied source color and its changing opacity; the background contribution therefore changes with the same angular interval

Each stop can be transparent or opaque, and matching first and last alpha values do not hide different opacity values in intermediate stops

Palette opacity remains part of the effective source alpha, including values that are not exactly representable as Single; no division by source alpha is required at a transparent endpoint

The bounded profile retains a source rectangle covering a vertical two-stop Pad backdrop with constant positive alpha, stable stop order, exact admitted source transforms and the existing per-interval color bounds

The completed glyph keeps the destination opacity and applies caller opacity once, including reflected transforms, reverse angle spans and authored angles beyond one revolution

Previously admitted constant-opacity angular and equal-angle fields retain their saved output; native budgets, direct-resource mutation rollback and publication cancellation remain unchanged

Other operators, broader graph or coverage combinations and universal center, jump, matrix or reader anti-aliasing behavior remain separate compatibility work

Source-atop sweep fields with varying backdrop opacity

Version 2.1207.13 emits eligible source-atop regular and equal-angle sweep fields as a single vector root Form when a vertical two-stop Pad backdrop varies between two positive opacity values

Instead of falling back to a 16-Form linear-light transparency chain whose premultiplied source layer can be attenuated by the backdrop under external PDF readers, the single-root program maps the world Y coordinate through the exact rational backdrop-alpha weight before evaluating the premultiplied source-atop color

A dedicated DeviceGray luminosity soft mask evaluates the linear two-stop backdrop opacity ramp across the shared domain while preserving the single page Form XObject and caller opacity contract

Admitted regular 360-degree sweeps, center-containing seams, varying source opacity and sheared or axis-aligned equal-angle rays with arbitrary positive sector widths all share this single-Form representation

Repeated-offset hard stops

Version 2.1168.1 retains real color and alpha jumps in eligible common-axis Pad composites

For a group of stops with the same offset, interpolation below the offset uses the first stop and interpolation above it uses the last; intermediate stops at that offset do not alter either side

Repeated first or last offsets preserve the corresponding Pad extension colors; if all offsets coincide, the result is the first color below the offset and the last color above it

Reverse-axis and axis-exchange transforms retain the source direction, with independent endpoint colors on each side rather than a ramp across the jump

Color-error certification applies to each nonempty region and its one-sided limits; it does not impose a uniform pointwise bound across a discontinuity or a shared anti-aliasing rule at an exact reader edge

Clear empty support around Pad hard stops

Version 2.1180.1 prevents stray dark or colored pixels in the empty area around eligible common-axis Pad hard-stop composites

The writer retains the original color and opacity fields and applies a separate binary native support field, including empty cells, without moving any source boundary

First and last repeated offsets, all-coincident stops, multiple jumps, reverse spans and axis exchange retain their authored colors and opacity under the same resource limits

This repairs the retained fully empty pixel footprints; exact jump-point side selection and arbitrary reader anti-aliasing remain separate compatibility boundaries

Limits and recovery

Preparation bounds graph occurrences, outline edges, subdivisions, exact arithmetic, output bytes, work and memory before resources publish together

Cancellation and failed admission retain the document's existing atomic publication and recovery contracts; renderer operation limits are unchanged

Isolated exact radial tips and unsupported support boundaries, uncertified sweep centers and angular jumps, non-axis or mixed-axis repeated-offset jumps, broader periodic combinations, nonorthogonal or curved outlines and other blend operators retain their existing paths and their own compatibility boundaries

This finite extension does not establish unrestricted native COLRv1 rendering or arbitrary external blend-mode equivalence

See Native COLRv1 Solid Composite Colors and COLRv1 Gradient Painting