Behdad Esfahbod
78f11ed726
Update test results for previous commit
2026-02-16 16:20:33 -03:00
Behdad Esfahbod and Claude Sonnet 4.5
49c1678b75
[test] Update draw tests after removing --quiet option
...
- Remove tests for --quiet/-q option
- Change --ned to --flat in remaining tests
- Remove expected output files for quiet tests
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com >
2026-02-14 18:28:48 -03:00
Behdad Esfahbod and Claude 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
Behdad Esfahbod
77d3ed5e75
[hb-draw] Use 6 bits of subpixel
...
Helps hb-ft since that doesn't work in floats all through.
Other backends should be unaffected.
2026-02-12 15:26:19 -07:00
Behdad Esfahbod
2caa4c22a5
[draw] Change conditional tests
2026-02-12 15:26:19 -07:00
Behdad Esfahbod
e6346b63bf
[draw] Add VARC tests
2026-02-12 15:26:19 -07:00
Behdad Esfahbod
7bbc027e11
[test/draw] Add more tests / change naming
2026-02-12 15:26:19 -07:00
Behdad Esfahbod
529043f033
[hb-draw] More tests
2026-02-12 15:26:19 -07:00
Behdad Esfahbod
69a4f5f501
[hb-draw] Change subpixel bits to 0
2026-02-12 15:26:19 -07:00
Behdad Esfahbod
008402dccf
[hb-draw] Default to upem font size
2026-02-12 15:26:19 -07:00
Behdad Esfahbod
0fd8261638
[test/draw] Change directory structure a bit
2026-02-12 15:26:19 -07:00
Behdad Esfahbod
f035a1df87
[test/draw] Switch tests to U+XXXX notation instead of text
2026-02-12 15:26:19 -07:00
Behdad Esfahbod
32a8fd62e8
Move hb-draw-compare and hb-svg-compare to test/draw
2026-02-12 15:26:19 -07:00
Behdad Esfahbod
8150eed010
[test] Start of a draw test suite
2026-02-12 15:26:19 -07:00