Files
harfbuzz/test/draw/data/expected/basic/flat-cff1.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

6 lines
1.0 KiB
XML

<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 -984 1513 1257" width="1513" height="1257">
<path d="M194,12C255,12 309,-20 355,-58L358,-58L365,0L433,0L433,-298C433,-419 383,-498 264,-498C186,-498 118,-464 73,-435L105,-378C143,-404 194,-430 250,-430C330,-430 350,-370 350,-308C143,-285 52,-232 52,-126C52,-39 113,12 194,12ZM218,-54C170,-54 132,-77 132,-132C132,-194 188,-234 350,-254L350,-119C303,-77 265,-54 218,-54Z"/>
<path d="M801,12C912,12 1011,-85 1011,-251C1011,-401 944,-498 818,-498C764,-498 710,-469 666,-430L668,-518L668,-712L586,-712L586,0L652,0L659,-50L662,-50C705,-11 756,12 801,12ZM787,-57C755,-57 711,-71 668,-108L668,-363C714,-406 757,-429 798,-429C890,-429 926,-357 926,-250C926,-130 867,-57 787,-57Z"/>
<path d="M1331,12C1389,12 1444,-11 1488,-50L1452,-105C1422,-78 1383,-56 1338,-56C1249,-56 1188,-131 1188,-242C1188,-354 1252,-430 1340,-430C1379,-430 1409,-412 1437,-387L1479,-441C1445,-472 1401,-498 1337,-498C1212,-498 1103,-405 1103,-242C1103,-81 1202,12 1331,12Z"/>
</svg>