This will lead to easier implementations. At the same time, we change the push_clip_glyph callback to use the font as-is, no unscaling needed. Update all callers and expected test results.pull/3938/head
parent
32ce29f99e
commit
97224f3b63
33 changed files with 639 additions and 457 deletions
@ -0,0 +1,97 @@ |
||||
start transform 0.019531 0.000000 0.000000 0.019531 0.000000 0.000000 |
||||
push group |
||||
start transform 51.200001 0.000000 0.000000 51.200001 0.000000 0.000000 |
||||
start clip glyph 13 |
||||
start transform 1.000000 0.000000 0.000000 0.976807 0.000000 0.000000 |
||||
radial gradient |
||||
p0 280.000000 440.000000 radius 0.000000 |
||||
p1 280.000000 440.000000 radius 467.000000 |
||||
colors |
||||
0.000000 16 1.000000 |
||||
0.448792 15 1.000000 |
||||
0.808594 14 1.000000 |
||||
1.000000 12 1.000000 |
||||
end transform |
||||
end clip |
||||
end transform |
||||
pop group mode 3 |
||||
push group |
||||
start transform 51.200001 0.000000 0.000000 51.200001 0.000000 0.000000 |
||||
start clip glyph 14 |
||||
linear gradient |
||||
p0 231.000000 -27.000000 |
||||
p1 1019.000000 -27.000000 |
||||
p2 231.000000 -815.000000 |
||||
colors |
||||
0.000000 12 1.000000 |
||||
1.000000 12 1.000000 |
||||
end clip |
||||
end transform |
||||
pop group mode 3 |
||||
push group |
||||
start transform 51.200001 0.000000 0.000000 51.200001 0.000000 0.000000 |
||||
start clip glyph 15 |
||||
solid 9 1.000000 |
||||
end clip |
||||
end transform |
||||
pop group mode 3 |
||||
push group |
||||
start transform 51.200001 0.000000 0.000000 51.200001 0.000000 0.000000 |
||||
start clip glyph 16 |
||||
solid 0 1.000000 |
||||
end clip |
||||
end transform |
||||
pop group mode 3 |
||||
push group |
||||
start transform 51.200001 0.000000 0.000000 51.200001 0.000000 0.000000 |
||||
start clip glyph 21 |
||||
solid 9 1.000000 |
||||
end clip |
||||
end transform |
||||
pop group mode 3 |
||||
push group |
||||
push group |
||||
start transform 51.200001 0.000000 0.000000 51.200001 0.000000 0.000000 |
||||
start clip glyph 16 |
||||
linear gradient |
||||
p0 669.000000 776.000000 |
||||
p1 180.000000 -106.000000 |
||||
p2 -212.000000 1265.000000 |
||||
colors |
||||
0.000000 5 1.000000 |
||||
1.000000 1 1.000000 |
||||
end clip |
||||
end transform |
||||
pop group mode 3 |
||||
push group |
||||
start transform 51.200001 0.000000 0.000000 51.200001 0.000000 0.000000 |
||||
start clip glyph 18 |
||||
solid 2 0.200012 |
||||
end clip |
||||
end transform |
||||
pop group mode 3 |
||||
pop group mode 3 |
||||
push group |
||||
start transform 51.200001 0.000000 0.000000 51.200001 0.000000 0.000000 |
||||
start clip glyph 19 |
||||
start transform 1.000000 0.000000 0.000000 0.969116 0.000000 0.000000 |
||||
radial gradient |
||||
p0 588.000000 198.000000 radius 0.000000 |
||||
p1 588.000000 198.000000 radius 342.000000 |
||||
colors |
||||
0.000000 16 1.000000 |
||||
0.448792 15 1.000000 |
||||
0.808594 14 1.000000 |
||||
1.000000 12 1.000000 |
||||
end transform |
||||
end clip |
||||
end transform |
||||
pop group mode 3 |
||||
push group |
||||
start transform 51.200001 0.000000 0.000000 51.200001 0.000000 0.000000 |
||||
start clip glyph 20 |
||||
solid 9 1.000000 |
||||
end clip |
||||
end transform |
||||
pop group mode 3 |
||||
end transform |
@ -1,79 +0,0 @@ |
||||
start transform 0.019531 0.000000 0.000000 0.019531 0.000000 0.000000 |
||||
push group |
||||
start clip glyph 13 |
||||
start transform 1.000000 0.000000 0.000000 0.976807 0.000000 0.000000 |
||||
radial gradient |
||||
p0 280.000000 440.000000 radius 0.000000 |
||||
p1 280.000000 440.000000 radius 467.000000 |
||||
colors |
||||
0.000000 16 1.000000 |
||||
0.448792 15 1.000000 |
||||
0.808594 14 1.000000 |
||||
1.000000 12 1.000000 |
||||
end transform |
||||
end clip |
||||
pop group mode 3 |
||||
push group |
||||
start clip glyph 14 |
||||
linear gradient |
||||
p0 231.000000 -27.000000 |
||||
p1 1019.000000 -27.000000 |
||||
p2 231.000000 -815.000000 |
||||
colors |
||||
0.000000 12 1.000000 |
||||
1.000000 12 1.000000 |
||||
end clip |
||||
pop group mode 3 |
||||
push group |
||||
start clip glyph 15 |
||||
solid 9 1.000000 |
||||
end clip |
||||
pop group mode 3 |
||||
push group |
||||
start clip glyph 16 |
||||
solid 0 1.000000 |
||||
end clip |
||||
pop group mode 3 |
||||
push group |
||||
start clip glyph 21 |
||||
solid 9 1.000000 |
||||
end clip |
||||
pop group mode 3 |
||||
push group |
||||
push group |
||||
start clip glyph 16 |
||||
linear gradient |
||||
p0 669.000000 776.000000 |
||||
p1 180.000000 -106.000000 |
||||
p2 -212.000000 1265.000000 |
||||
colors |
||||
0.000000 5 1.000000 |
||||
1.000000 1 1.000000 |
||||
end clip |
||||
pop group mode 3 |
||||
push group |
||||
start clip glyph 18 |
||||
solid 2 0.200012 |
||||
end clip |
||||
pop group mode 3 |
||||
pop group mode 3 |
||||
push group |
||||
start clip glyph 19 |
||||
start transform 1.000000 0.000000 0.000000 0.969116 0.000000 0.000000 |
||||
radial gradient |
||||
p0 588.000000 198.000000 radius 0.000000 |
||||
p1 588.000000 198.000000 radius 342.000000 |
||||
colors |
||||
0.000000 16 1.000000 |
||||
0.448792 15 1.000000 |
||||
0.808594 14 1.000000 |
||||
1.000000 12 1.000000 |
||||
end transform |
||||
end clip |
||||
pop group mode 3 |
||||
push group |
||||
start clip glyph 20 |
||||
solid 9 1.000000 |
||||
end clip |
||||
pop group mode 3 |
||||
end transform |
@ -0,0 +1,97 @@ |
||||
start transform 0.019531 0.000000 0.003906 0.019531 0.000000 0.000000 |
||||
push group |
||||
start transform 51.200001 0.000000 10.240000 51.200001 0.000000 0.000000 |
||||
start clip glyph 13 |
||||
start transform 1.000000 0.000000 0.000000 0.976807 0.000000 0.000000 |
||||
radial gradient |
||||
p0 280.000000 440.000000 radius 0.000000 |
||||
p1 280.000000 440.000000 radius 467.000000 |
||||
colors |
||||
0.000000 16 1.000000 |
||||
0.448792 15 1.000000 |
||||
0.808594 14 1.000000 |
||||
1.000000 12 1.000000 |
||||
end transform |
||||
end clip |
||||
end transform |
||||
pop group mode 3 |
||||
push group |
||||
start transform 51.200001 0.000000 10.240000 51.200001 0.000000 0.000000 |
||||
start clip glyph 14 |
||||
linear gradient |
||||
p0 231.000000 -27.000000 |
||||
p1 1019.000000 -27.000000 |
||||
p2 231.000000 -815.000000 |
||||
colors |
||||
0.000000 12 1.000000 |
||||
1.000000 12 1.000000 |
||||
end clip |
||||
end transform |
||||
pop group mode 3 |
||||
push group |
||||
start transform 51.200001 0.000000 10.240000 51.200001 0.000000 0.000000 |
||||
start clip glyph 15 |
||||
solid 9 1.000000 |
||||
end clip |
||||
end transform |
||||
pop group mode 3 |
||||
push group |
||||
start transform 51.200001 0.000000 10.240000 51.200001 0.000000 0.000000 |
||||
start clip glyph 16 |
||||
solid 0 1.000000 |
||||
end clip |
||||
end transform |
||||
pop group mode 3 |
||||
push group |
||||
start transform 51.200001 0.000000 10.240000 51.200001 0.000000 0.000000 |
||||
start clip glyph 21 |
||||
solid 9 1.000000 |
||||
end clip |
||||
end transform |
||||
pop group mode 3 |
||||
push group |
||||
push group |
||||
start transform 51.200001 0.000000 10.240000 51.200001 0.000000 0.000000 |
||||
start clip glyph 16 |
||||
linear gradient |
||||
p0 669.000000 776.000000 |
||||
p1 180.000000 -106.000000 |
||||
p2 -212.000000 1265.000000 |
||||
colors |
||||
0.000000 5 1.000000 |
||||
1.000000 1 1.000000 |
||||
end clip |
||||
end transform |
||||
pop group mode 3 |
||||
push group |
||||
start transform 51.200001 0.000000 10.240000 51.200001 0.000000 0.000000 |
||||
start clip glyph 18 |
||||
solid 2 0.200012 |
||||
end clip |
||||
end transform |
||||
pop group mode 3 |
||||
pop group mode 3 |
||||
push group |
||||
start transform 51.200001 0.000000 10.240000 51.200001 0.000000 0.000000 |
||||
start clip glyph 19 |
||||
start transform 1.000000 0.000000 0.000000 0.969116 0.000000 0.000000 |
||||
radial gradient |
||||
p0 588.000000 198.000000 radius 0.000000 |
||||
p1 588.000000 198.000000 radius 342.000000 |
||||
colors |
||||
0.000000 16 1.000000 |
||||
0.448792 15 1.000000 |
||||
0.808594 14 1.000000 |
||||
1.000000 12 1.000000 |
||||
end transform |
||||
end clip |
||||
end transform |
||||
pop group mode 3 |
||||
push group |
||||
start transform 51.200001 0.000000 10.240000 51.200001 0.000000 0.000000 |
||||
start clip glyph 20 |
||||
solid 9 1.000000 |
||||
end clip |
||||
end transform |
||||
pop group mode 3 |
||||
end transform |
@ -1,79 +0,0 @@ |
||||
start transform 0.019531 0.000000 0.003906 0.019531 0.000000 0.000000 |
||||
push group |
||||
start clip glyph 13 |
||||
start transform 1.000000 0.000000 0.000000 0.976807 0.000000 0.000000 |
||||
radial gradient |
||||
p0 280.000000 440.000000 radius 0.000000 |
||||
p1 280.000000 440.000000 radius 467.000000 |
||||
colors |
||||
0.000000 16 1.000000 |
||||
0.448792 15 1.000000 |
||||
0.808594 14 1.000000 |
||||
1.000000 12 1.000000 |
||||
end transform |
||||
end clip |
||||
pop group mode 3 |
||||
push group |
||||
start clip glyph 14 |
||||
linear gradient |
||||
p0 231.000000 -27.000000 |
||||
p1 1019.000000 -27.000000 |
||||
p2 231.000000 -815.000000 |
||||
colors |
||||
0.000000 12 1.000000 |
||||
1.000000 12 1.000000 |
||||
end clip |
||||
pop group mode 3 |
||||
push group |
||||
start clip glyph 15 |
||||
solid 9 1.000000 |
||||
end clip |
||||
pop group mode 3 |
||||
push group |
||||
start clip glyph 16 |
||||
solid 0 1.000000 |
||||
end clip |
||||
pop group mode 3 |
||||
push group |
||||
start clip glyph 21 |
||||
solid 9 1.000000 |
||||
end clip |
||||
pop group mode 3 |
||||
push group |
||||
push group |
||||
start clip glyph 16 |
||||
linear gradient |
||||
p0 669.000000 776.000000 |
||||
p1 180.000000 -106.000000 |
||||
p2 -212.000000 1265.000000 |
||||
colors |
||||
0.000000 5 1.000000 |
||||
1.000000 1 1.000000 |
||||
end clip |
||||
pop group mode 3 |
||||
push group |
||||
start clip glyph 18 |
||||
solid 2 0.200012 |
||||
end clip |
||||
pop group mode 3 |
||||
pop group mode 3 |
||||
push group |
||||
start clip glyph 19 |
||||
start transform 1.000000 0.000000 0.000000 0.969116 0.000000 0.000000 |
||||
radial gradient |
||||
p0 588.000000 198.000000 radius 0.000000 |
||||
p1 588.000000 198.000000 radius 342.000000 |
||||
colors |
||||
0.000000 16 1.000000 |
||||
0.448792 15 1.000000 |
||||
0.808594 14 1.000000 |
||||
1.000000 12 1.000000 |
||||
end transform |
||||
end clip |
||||
pop group mode 3 |
||||
push group |
||||
start clip glyph 20 |
||||
solid 9 1.000000 |
||||
end clip |
||||
pop group mode 3 |
||||
end transform |
@ -0,0 +1,14 @@ |
||||
start transform 0.020000 0.000000 0.000000 0.020000 0.000000 0.000000 |
||||
start transform 50.000000 0.000000 0.000000 50.000000 0.000000 0.000000 |
||||
start clip glyph 174 |
||||
sweep gradient |
||||
center 500.000000 600.000000 |
||||
angles 0.000000 6.283185 |
||||
colors |
||||
0.250000 7 1.000000 |
||||
0.416687 4 1.000000 |
||||
0.583313 0 1.000000 |
||||
0.750000 8 1.000000 |
||||
end clip |
||||
end transform |
||||
end transform |
@ -1,12 +0,0 @@ |
||||
start transform 0.020000 0.000000 0.000000 0.020000 0.000000 0.000000 |
||||
start clip glyph 174 |
||||
sweep gradient |
||||
center 500.000000 600.000000 |
||||
angles 0.000000 6.283185 |
||||
colors |
||||
0.250000 7 1.000000 |
||||
0.416687 4 1.000000 |
||||
0.583313 0 1.000000 |
||||
0.750000 8 1.000000 |
||||
end clip |
||||
end transform |
@ -1,15 +1,19 @@ |
||||
start transform 0.020000 0.000000 0.000000 0.020000 0.000000 0.000000 |
||||
push group |
||||
start clip glyph 3 |
||||
solid 4 0.500000 |
||||
end clip |
||||
start transform 50.000000 0.000000 0.000000 50.000000 0.000000 0.000000 |
||||
start clip glyph 3 |
||||
solid 4 0.500000 |
||||
end clip |
||||
end transform |
||||
push group |
||||
start transform 0.000000 0.000000 0.000000 0.000000 1000.000000 1000.000000 |
||||
start transform 1.000000 -0.363874 -0.176283 1.000000 0.000000 0.000000 |
||||
start transform 0.000000 0.000000 0.000000 0.000000 -1000.000000 -1000.000000 |
||||
start clip glyph 3 |
||||
solid 1 0.700012 |
||||
end clip |
||||
start transform 50.000000 0.000000 0.000000 50.000000 0.000000 0.000000 |
||||
start clip glyph 3 |
||||
solid 1 0.700012 |
||||
end clip |
||||
end transform |
||||
end transform |
||||
end transform |
||||
end transform |
@ -0,0 +1,18 @@ |
||||
start transform 0.020000 0.000000 0.000000 0.020000 0.000000 0.000000 |
||||
push group |
||||
start transform 50.000000 0.000000 0.000000 50.000000 0.000000 0.000000 |
||||
start clip glyph 3 |
||||
solid 4 0.500000 |
||||
end clip |
||||
end transform |
||||
push group |
||||
start transform 1.000000 0.000000 0.000000 1.000000 200.000000 200.000000 |
||||
start transform 50.000000 0.000000 0.000000 50.000000 0.000000 0.000000 |
||||
start clip glyph 3 |
||||
solid 1 0.700012 |
||||
end clip |
||||
end transform |
||||
end transform |
||||
pop group mode 4 |
||||
pop group mode 3 |
||||
end transform |
@ -1,14 +0,0 @@ |
||||
start transform 0.020000 0.000000 0.000000 0.020000 0.000000 0.000000 |
||||
push group |
||||
start clip glyph 3 |
||||
solid 4 0.500000 |
||||
end clip |
||||
push group |
||||
start transform 1.000000 0.000000 0.000000 1.000000 200.000000 200.000000 |
||||
start clip glyph 3 |
||||
solid 1 0.700012 |
||||
end clip |
||||
end transform |
||||
pop group mode 4 |
||||
pop group mode 3 |
||||
end transform |
@ -0,0 +1,14 @@ |
||||
start transform 0.020000 0.000000 0.000000 0.020000 0.000000 0.000000 |
||||
start transform 50.000000 0.000000 0.000000 50.000000 0.000000 0.000000 |
||||
start clip glyph 165 |
||||
linear gradient |
||||
p0 100.000000 950.000000 |
||||
p1 2300.000000 950.000000 |
||||
p2 -1000.000000 250.000000 |
||||
colors |
||||
0.000000 0 1.000000 |
||||
0.500000 4 1.000000 |
||||
1.000000 2 1.000000 |
||||
end clip |
||||
end transform |
||||
end transform |
@ -1,12 +0,0 @@ |
||||
start transform 0.020000 0.000000 0.000000 0.020000 0.000000 0.000000 |
||||
start clip glyph 165 |
||||
linear gradient |
||||
p0 100.000000 950.000000 |
||||
p1 2300.000000 950.000000 |
||||
p2 -1000.000000 250.000000 |
||||
colors |
||||
0.000000 0 1.000000 |
||||
0.500000 4 1.000000 |
||||
1.000000 2 1.000000 |
||||
end clip |
||||
end transform |
@ -0,0 +1,26 @@ |
||||
start transform 0.020000 0.000000 0.000000 0.020000 0.000000 0.000000 |
||||
push group |
||||
start transform 1.000000 0.000000 0.000000 1.000000 150.000000 0.000000 |
||||
start transform 50.000000 0.000000 0.000000 50.000000 0.000000 0.000000 |
||||
start clip glyph 174 |
||||
solid 3 1.000000 |
||||
end clip |
||||
end transform |
||||
end transform |
||||
pop group mode 3 |
||||
push group |
||||
start transform 1.000000 0.000000 0.000000 1.000000 -150.000000 0.000000 |
||||
start transform 50.000000 0.000000 0.000000 50.000000 0.000000 0.000000 |
||||
start clip glyph 174 |
||||
linear gradient |
||||
p0 500.000000 250.000000 |
||||
p1 500.000000 950.000000 |
||||
p2 600.000000 250.000000 |
||||
colors |
||||
0.000000 0 1.000000 |
||||
1.000000 4 1.000000 |
||||
end clip |
||||
end transform |
||||
end transform |
||||
pop group mode 3 |
||||
end transform |
@ -1,22 +0,0 @@ |
||||
start transform 0.020000 0.000000 0.000000 0.020000 0.000000 0.000000 |
||||
push group |
||||
start transform 1.000000 0.000000 0.000000 1.000000 150.000000 0.000000 |
||||
start clip glyph 174 |
||||
solid 3 1.000000 |
||||
end clip |
||||
end transform |
||||
pop group mode 3 |
||||
push group |
||||
start transform 1.000000 0.000000 0.000000 1.000000 -150.000000 0.000000 |
||||
start clip glyph 174 |
||||
linear gradient |
||||
p0 500.000000 250.000000 |
||||
p1 500.000000 950.000000 |
||||
p2 600.000000 250.000000 |
||||
colors |
||||
0.000000 0 1.000000 |
||||
1.000000 4 1.000000 |
||||
end clip |
||||
end transform |
||||
pop group mode 3 |
||||
end transform |
@ -0,0 +1,13 @@ |
||||
start transform 0.020000 0.000000 0.000000 0.020000 0.000000 0.000000 |
||||
start transform 50.000000 0.000000 0.000000 50.000000 0.000000 0.000000 |
||||
start clip glyph 6 |
||||
linear gradient |
||||
p0 100.000000 250.000000 |
||||
p1 900.000000 250.000000 |
||||
p2 100.000000 300.000000 |
||||
colors |
||||
0.000000 0 1.000000 |
||||
1.000000 4 1.000000 |
||||
end clip |
||||
end transform |
||||
end transform |
@ -1,11 +0,0 @@ |
||||
start transform 0.020000 0.000000 0.000000 0.020000 0.000000 0.000000 |
||||
start clip glyph 6 |
||||
linear gradient |
||||
p0 100.000000 250.000000 |
||||
p1 900.000000 250.000000 |
||||
p2 100.000000 300.000000 |
||||
colors |
||||
0.000000 0 1.000000 |
||||
1.000000 4 1.000000 |
||||
end clip |
||||
end transform |
@ -0,0 +1,13 @@ |
||||
start transform 0.020000 0.000000 0.000000 0.020000 0.000000 0.000000 |
||||
start transform 50.000000 0.000000 0.000000 50.000000 0.000000 0.000000 |
||||
start clip glyph 2 |
||||
radial gradient |
||||
p0 166.000000 768.000000 radius 0.000000 |
||||
p1 166.000000 768.000000 radius 256.000000 |
||||
colors |
||||
0.000000 3 1.000000 |
||||
0.500000 9 1.000000 |
||||
1.000000 0 1.000000 |
||||
end clip |
||||
end transform |
||||
end transform |
@ -1,11 +0,0 @@ |
||||
start transform 0.020000 0.000000 0.000000 0.020000 0.000000 0.000000 |
||||
start clip glyph 2 |
||||
radial gradient |
||||
p0 166.000000 768.000000 radius 0.000000 |
||||
p1 166.000000 768.000000 radius 256.000000 |
||||
colors |
||||
0.000000 3 1.000000 |
||||
0.500000 9 1.000000 |
||||
1.000000 0 1.000000 |
||||
end clip |
||||
end transform |
Loading…
Reference in new issue