mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-19 14:01:10 +01:00
The SVG and PDF paint backends use large clipped rectangles to fill solid colors and gradient backgrounds. The old constant 32767 was sized for upem-space coordinates (~2048 max). After the pixel-space change, coordinates can be in font-scale (upem * SCALE, e.g. 131072 for a 2048-upem font at SCALE=64). Values above 32767 fell outside the fill rect, causing COLRv0 glyph layers to be clipped at the top. Bump all instances to 1000000 as a bandaid; proper fix is to emit paint coordinates in output-space. Regenerated vector test expected outputs. Assisted-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>