mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-22 23:41:03 +01:00
Detect the fill-glyph pattern in the COLRv1 graph: a PaintGlyph whose child is a (Var)PaintSolid, and emit a single fill_glyph instead of push_clip_glyph + color + pop_clip.
15 lines
354 B
Plaintext
15 lines
354 B
Plaintext
start transform 1 0 0 1 0 0
|
|
push group
|
|
start transform 1 0 0 1 0 0
|
|
fill glyph 3 solid 0 0 255 128
|
|
end transform
|
|
push group
|
|
start transform 1 0 0 1 100 0
|
|
start transform 1 0 0 1 0 0
|
|
fill glyph 3 solid 255 165 0 179
|
|
end transform
|
|
end transform
|
|
pop group mode 4
|
|
pop group mode 3
|
|
end transform
|