mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-19 22:11:04 +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>
11 lines
1.4 KiB
XML
11 lines
1.4 KiB
XML
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 -1900 3335 2400" width="3335" height="2400">
|
|
<defs>
|
|
<path id="p1" d="M808,0Q792,32 782,114Q653,-20 474,-20Q314,-20 211.5,70.5Q109,161 109,300Q109,469 237.5,562.5Q366,656 599,656L779,656L779,741Q779,838 721,895.5Q663,953 550,953Q451,953 384,903Q317,853 317,782L131,782Q131,863 188.5,938.5Q246,1014 344.5,1058Q443,1102 561,1102Q748,1102 854,1008.5Q960,915 964,751L964,253Q964,104 1002,16L1002,0L808,0ZM501,141Q588,141 666,186Q744,231 779,303L779,525L634,525Q294,525 294,326Q294,239 352,190Q410,141 501,141Z"/>
|
|
<path id="p2" d="M1056,529Q1056,281 942,130.5Q828,-20 636,-20Q431,-20 319,125L310,0L140,0L140,1536L325,1536L325,963Q437,1102 634,1102Q831,1102 943.5,953Q1056,804 1056,545L1056,529ZM871,550Q871,739 798,842Q725,945 588,945Q405,945 325,775L325,307Q410,137 590,137Q723,137 797,240Q871,343 871,550Z"/>
|
|
<path id="p3" d="M574,131Q673,131 747,191Q821,251 829,341L1004,341Q999,248 940,164Q881,80 782.5,30Q684,-20 574,-20Q353,-20 222.5,127.5Q92,275 92,531L92,562Q92,720 150,843Q208,966 316.5,1034Q425,1102 573,1102Q755,1102 875.5,993Q996,884 1004,710L829,710Q821,815 749.5,882.5Q678,950 573,950Q432,950 354.5,848.5Q277,747 277,555L277,520Q277,333 354,232Q431,131 574,131Z"/>
|
|
</defs>
|
|
<use href="#p1" transform="translate(0 0) scale(1,-1)"/>
|
|
<use href="#p2" transform="translate(1114 0) scale(1,-1)"/>
|
|
<use href="#p3" transform="translate(2263 0) scale(1,-1)"/>
|
|
</svg>
|