mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-23 07:51:10 +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.
22 lines
591 B
Plaintext
22 lines
591 B
Plaintext
start transform 1 0 0 1 0 0
|
|
start clip rectangle 0 0 1e+03 1e+03
|
|
start transform 1 0 0 1 0 0
|
|
fill glyph 3 solid 0 0 0 255
|
|
end transform
|
|
push group
|
|
start transform 0.5 0 0 0.5 166 334
|
|
start transform 1 0 0 1 0 0
|
|
fill glyph 2 solid 255 220 1 255
|
|
end transform
|
|
end transform
|
|
push group
|
|
start transform 0.5 0 0 0.5 334 166
|
|
start transform 1 0 0 1 0 0
|
|
fill glyph 2 solid 104 199 232 255
|
|
end transform
|
|
end transform
|
|
pop group mode 3
|
|
pop group mode 3
|
|
end clip
|
|
end transform
|