mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 06:21:16 +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>
6 lines
1.4 KiB
XML
6 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">
|
|
<path 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 d="M2170,-529Q2170,-281 2056,-130.5Q1942,20 1750,20Q1545,20 1433,-125L1424,0L1254,0L1254,-1536L1439,-1536L1439,-963Q1551,-1102 1748,-1102Q1945,-1102 2057.5,-953Q2170,-804 2170,-545L2170,-529ZM1985,-550Q1985,-739 1912,-842Q1839,-945 1702,-945Q1519,-945 1439,-775L1439,-307Q1524,-137 1704,-137Q1837,-137 1911,-240Q1985,-343 1985,-550Z"/>
|
|
<path d="M2837,-131Q2936,-131 3010,-191Q3084,-251 3092,-341L3267,-341Q3262,-248 3203,-164Q3144,-80 3045.5,-30Q2947,20 2837,20Q2616,20 2485.5,-127.5Q2355,-275 2355,-531L2355,-562Q2355,-720 2413,-843Q2471,-966 2579.5,-1034Q2688,-1102 2836,-1102Q3018,-1102 3138.5,-993Q3259,-884 3267,-710L3092,-710Q3084,-815 3012.5,-882.5Q2941,-950 2836,-950Q2695,-950 2617.5,-848.5Q2540,-747 2540,-555L2540,-520Q2540,-333 2617,-232Q2694,-131 2837,-131Z"/>
|
|
</svg>
|