THotPDF.COLRv1DeviceSpaceGroupBlend Property

THotPDF API reference

 

THotPDF Methods  Auto Shaping  GSUB

Emits COLRv1 transparency groups without a blend colour space so readers composite colour glyphs in the ordinary device space, repairing MuPDF dark-channel precision loss on isolated CalRGB groups

 

Delphi syntax

property COLRv1DeviceSpaceGroupBlend: Boolean read FCOLRv1DeviceSpaceGroupBlend write FCOLRv1DeviceSpaceGroupBlend;

 

Covered APIs

APIUsage notes
COLRv1DeviceSpaceGroupBlendWhen true, isolated COLRv1 transparency groups omit the blend colour space and inherit the parent device compositing space; content colours, gradient shadings and colour functions remain linear-light CalRGB
DrawRegisteredColorGlyphApplies the setting to every transparency group emitted for the COLRv1 glyph graph

 

Usage notes

MuPDF 1.28 loses near-zero linear-light colour channels whilst compositing an isolated group that carries the normative CalRGB blend space, rendering dark glyph areas with zeroed channels; Poppler Splash never honoured group blend spaces. Setting this property repairs the MuPDF output at the cost of device-space group compositing instead of linear-light compositing for overlapping translucent layers. The default false keeps linear-light group blending, so existing output is unchanged

 

See also: DrawRegisteredColorGlyph COLRv1 paint graphs COLRv1 gradient painting