mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-19 14:01:10 +01:00
Creating upem_font as a sub-font of the main font (which has scale = upem * 64 due to subpixel bits) caused the paint API to emit spurious parent→child scale transforms. With precision=2 rounding, 1/64 rounds to 0.02 and 0.02*64 = 1.28, destroying the mathematical cancellation and making color glyphs ~1.6x too large. Fix by creating upem_font directly from the face, eliminating the parent-child relationship. Update expected test outputs accordingly. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1.4 KiB
1.4 KiB