mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-26 09:21:06 +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.
76 lines
2.1 KiB
Plaintext
76 lines
2.1 KiB
Plaintext
start transform 1 0 0 1 0 0
|
|
start clip rectangle 64 -224 1.22e+03 928
|
|
start transform 1 0 0 1 0 0
|
|
start clip glyph 13
|
|
start transform 1 0 0 1 0 0
|
|
start transform 1 0 0 0.977 0 0
|
|
radial gradient
|
|
p0 280 440 radius 0
|
|
p1 280 440 radius 467
|
|
colors 0
|
|
0 186 141 104 255
|
|
0.449 183 138 103 255
|
|
0.809 173 130 100 255
|
|
1 164 123 98 255
|
|
end transform
|
|
end transform
|
|
end clip
|
|
end transform
|
|
start transform 1 0 0 1 0 0
|
|
start clip glyph 14
|
|
start transform 1 0 0 1 0 0
|
|
linear gradient
|
|
p0 231 -27
|
|
p1 1.02e+03 -27
|
|
colors 0
|
|
0 164 123 98 255
|
|
1 164 123 98 255
|
|
end transform
|
|
end clip
|
|
end transform
|
|
start transform 1 0 0 1 0 0
|
|
fill glyph 15 solid 145 103 77 255
|
|
end transform
|
|
start transform 1 0 0 1 0 0
|
|
fill glyph 16 solid 30 136 229 255
|
|
end transform
|
|
start transform 1 0 0 1 0 0
|
|
fill glyph 21 solid 145 103 77 255
|
|
end transform
|
|
start transform 1 0 0 1 0 0
|
|
start clip glyph 16
|
|
start transform 1 0 0 1 0 0
|
|
linear gradient
|
|
p0 669 776
|
|
p1 180 -106
|
|
colors 0
|
|
0 100 181 246 255
|
|
1 33 150 243 255
|
|
end transform
|
|
end clip
|
|
end transform
|
|
start transform 1 0 0 1 0 0
|
|
fill glyph 18 solid 66 66 66 51
|
|
end transform
|
|
start transform 1 0 0 1 0 0
|
|
start clip glyph 19
|
|
start transform 1 0 0 1 0 0
|
|
start transform 1 0 0 0.969 0 0
|
|
radial gradient
|
|
p0 588 198 radius 0
|
|
p1 588 198 radius 342
|
|
colors 0
|
|
0 186 141 104 255
|
|
0.449 183 138 103 255
|
|
0.809 173 130 100 255
|
|
1 164 123 98 255
|
|
end transform
|
|
end transform
|
|
end clip
|
|
end transform
|
|
start transform 1 0 0 1 0 0
|
|
fill glyph 20 solid 145 103 77 255
|
|
end transform
|
|
end clip
|
|
end transform
|