Files
harfbuzz/test/draw/data/expected/varc/conditional-default.svg
T
Behdad EsfahbodandClaude Opus 4.6 1c32b69fe3 [hb-draw] Fix color font scaling by creating upem_font from face directly
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>
2026-02-12 15:26:19 -07:00

7 lines
626 B
XML

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 -800 920 1000" width="920" height="1000">
<defs>
<path id="p1" d="M85.86,284.12Q191.24,304.99 270.31,341.96Q349.37,378.92 402.13,432.04Q454.88,485.16 481.39,554.48Q507.9,623.79 507.9,709.05L507.9,746L80,746L80,676L463.82,676L426.44,688Q425.94,625 403.09,571.44Q380.24,517.89 334.68,474.9Q289.13,431.9 220.17,399.75Q151.2,367.6 58.78,346.97L85.86,284.12ZM749.14,-93.48L749.14,186L749.14,236L196,236L196,166L712.14,166L674.69,182L674.69,-93.48L749.14,-93.48Z"/>
</defs>
<use href="#p1" transform="translate(0 0) scale(1,-1)"/>
</svg>