mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-30 01:54:21 +01:00
Make the native COLRv1 paint paths report the root clip in font units under the font transform. This matches the order used by fontations and removes the need to pre-scale the HB-OT clip extents. For the FreeType path, add a helper to convert FT_ClipBox values back to font units before pushing them under the font transform, and share that conversion with nested COLR glyph clip boxes. Update paint and vector expectations for the new transform/clip stack. Testing: CCACHE_DISABLE=1 meson test -C build --print-errorlogs Assisted-by: OpenAI Codex
12 lines
268 B
Plaintext
12 lines
268 B
Plaintext
start transform 1 0 0 1 0 0
|
|
start clip rectangle 100 250 900 950
|
|
start transform 1 0 0 1 0 0
|
|
start clip glyph 154
|
|
start transform 1 0 0 1 0 0
|
|
solid 0 0 0 255
|
|
end transform
|
|
end clip
|
|
end transform
|
|
end clip
|
|
end transform
|