mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-19 14:01:10 +01:00
Scale all SVG paint and draw coordinates by 1/scale_factor so paths, clips, gradients, transforms, and images emit fractional pixel values instead of font-scale integers. The per-glyph <use> transform now applies only a Y-flip (scale(1,-1)) instead of scale(1/sf,-1/sf), since the content is already in output-space. Revert the 1000000 fill rect bandaid back to 32767 — in output-space, 32767 pixels is always large enough. SVG paint callbacks: - push_clip_glyph: path sink divides by scale_factor - push_clip_rectangle: coords divided by sx/sy - push_transform: translation (dx,dy) divided by sx/sy - gradient coords: divided by sx/sy - sweep center: divided by sx/sy - image extents: divided by sx/sy SVG draw: - Glyph outline path sink divides by scale_factor Regenerated all vector test expected outputs. Assisted-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>