Skip to content

Commit

Permalink
Test PaintFuncs
Browse files Browse the repository at this point in the history
  • Loading branch information
khaledhosny committed Jan 27, 2024
1 parent cf04cfe commit 7d5e986
Show file tree
Hide file tree
Showing 13 changed files with 549 additions and 0 deletions.
121 changes: 121 additions & 0 deletions tests/data/expected/hand-10
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
# random seed: R02Se2b1d61d9c4fd31724517ef138cff8f6
# Start of hb tests
# Start of paint tests
# Start of ot tests
start clip rectangle 64 -224 1.22e+03 928
start transform 1 0 0 1 0 0
push group
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
pop group mode 3
push group
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
p2 231 -815
colors 0
0 164 123 98 255
1 164 123 98 255
end transform
end clip
end transform
pop group mode 3
push group
start transform 1 0 -0 1 0 0
start clip glyph 15
start transform 1 0 0 1 0 0
solid 145 103 77 255
end transform
end clip
end transform
pop group mode 3
push group
start transform 1 0 -0 1 0 0
start clip glyph 16
start transform 1 0 0 1 0 0
solid 30 136 229 255
end transform
end clip
end transform
pop group mode 3
push group
start transform 1 0 -0 1 0 0
start clip glyph 21
start transform 1 0 0 1 0 0
solid 145 103 77 255
end transform
end clip
end transform
pop group mode 3
push group
push group
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
p2 -212 1.26e+03
colors 0
0 100 181 246 255
1 33 150 243 255
end transform
end clip
end transform
pop group mode 3
push group
start transform 1 0 -0 1 0 0
start clip glyph 18
start transform 1 0 0 1 0 0
solid 66 66 66 51
end transform
end clip
end transform
pop group mode 3
pop group mode 3
push group
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
pop group mode 3
push group
start transform 1 0 -0 1 0 0
start clip glyph 20
start transform 1 0 0 1 0 0
solid 145 103 77 255
end transform
end clip
end transform
pop group mode 3
end transform
end clip
22 changes: 22 additions & 0 deletions tests/data/expected/test-10
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# random seed: R02S730db577e65f80492e3e3eacc21152fa
# Start of hb tests
# Start of paint tests
# Start of ot tests
start clip rectangle 0 0 1e+03 1e+03
start transform 1 0 0 1 0 0
start transform 1 0 -0 1 0 0
start clip glyph 174
start transform 1 0 0 1 0 0
sweep gradient
center 500 600
angles 0 6.28
colors 0
0.25 250 240 230 255
0.417 0 0 255 255
0.583 255 0 0 255
0.75 47 79 79 255
end transform
end clip
end transform
end transform
end clip
30 changes: 30 additions & 0 deletions tests/data/expected/test-106
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# random seed: R02S33079790f9ab4f19e7151add3612840f
# Start of hb tests
# Start of paint tests
# Start of ot tests
start clip rectangle 118 -22.9 750 750
start transform 1 0 0 1 0 0
start transform 1 0 -0 1 0 0
start clip glyph 3
start transform 1 0 0 1 0 0
solid 0 0 255 127
end transform
end clip
end transform
push group
start transform 1 0 0 1 1e+03 1e+03
start transform 1 0.364 0.176 1 0 0
start transform 1 0 0 1 -1e+03 -1e+03
start transform 1 0 -0 1 0 0
start clip glyph 3
start transform 1 0 0 1 0 0
solid 255 165 0 178
end transform
end clip
end transform
end transform
end transform
end transform
pop group mode 4
end transform
end clip
26 changes: 26 additions & 0 deletions tests/data/expected/test-116
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# random seed: R02S7f8abf2d360ae53f6acb756fc1d06756
# Start of hb tests
# Start of paint tests
# Start of ot tests
start clip rectangle 250 250 950 950
start transform 1 0 0 1 0 0
start transform 1 0 -0 1 0 0
start clip glyph 3
start transform 1 0 0 1 0 0
solid 0 0 255 127
end transform
end clip
end transform
push group
start transform 1 0 0 1 200 200
start transform 1 0 -0 1 0 0
start clip glyph 3
start transform 1 0 0 1 0 0
solid 255 165 0 178
end transform
end clip
end transform
end transform
pop group mode 4
end transform
end clip
47 changes: 47 additions & 0 deletions tests/data/expected/test-123
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# random seed: R02Sa683270814db638bd7dc3f8fc211d03f
# Start of hb tests
# Start of paint tests
# Start of ot tests
start clip rectangle 0 0 1e+03 1e+03
start transform 1 0 0 1 0 0
push group
start transform 1 0 -0 1 0 0
start clip glyph 3
start transform 1 0 0 1 0 0
solid 0 0 0 255
end transform
end clip
end transform
pop group mode 3
push group
start transform 1 0 0 1 333 667
start transform 0.5 0 0 0.5 0 0
start transform 1 0 0 1 -333 -667
start transform 1 0 -0 1 0 0
start clip glyph 2
start transform 1 0 0 1 0 0
solid 255 220 1 255
end transform
end clip
end transform
end transform
end transform
end transform
push group
start transform 1 0 0 1 667 333
start transform 0.5 0 0 0.5 0 0
start transform 1 0 0 1 -667 -333
start transform 1 0 -0 1 0 0
start clip glyph 2
start transform 1 0 0 1 0 0
solid 104 199 232 255
end transform
end clip
end transform
end transform
end transform
end transform
pop group mode 5
pop group mode 3
end transform
end clip
40 changes: 40 additions & 0 deletions tests/data/expected/test-154
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# random seed: R02S46170a7a8abc3ad07d2b70fd08efc176
# Start of hb tests
# Start of paint tests
# Start of ot tests
start clip rectangle 0 500 500 1e+03
start transform 1 0 0 1 0 0
start transform 1 0 -0 1 0 0
paint color glyph 164; acting as failed
end transform
start clip rectangle 100 100 900 900
start transform 1 0 -0 1 0 0
paint color glyph 93; acting as failed
end transform
start clip rectangle 0 0 1e+03 1e+03
start transform 1 0 -0 1 0 0
start clip glyph 2
start transform 1 0 0 1 0 0
radial gradient
p0 166 768 radius 0
p1 166 768 radius 256
colors 2
0 0 128 0 255
0.5 255 255 255 255
1 255 0 0 255
end transform
end clip
end transform
end clip
end clip
push group
start transform 1 0 -0 1 0 0
start clip glyph 159
start transform 1 0 0 1 0 0
solid 128 128 128 102
end transform
end clip
end transform
pop group mode 3
end transform
end clip
22 changes: 22 additions & 0 deletions tests/data/expected/test-165
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# random seed: R02Sd7e42dc5034eae428f9fdf486603e319
# Start of hb tests
# Start of paint tests
# Start of ot tests
start clip rectangle 100 250 1.2e+03 950
start transform 1 0 0 1 0 0
start transform 1 0 -0 1 0 0
start clip glyph 165
start transform 1 0 0 1 0 0
linear gradient
p0 100 950
p1 2.3e+03 950
p2 -1e+03 250
colors 0
0 255 0 0 255
0.5 0 0 255 255
1 255 255 0 255
end transform
end clip
end transform
end transform
end clip
36 changes: 36 additions & 0 deletions tests/data/expected/test-175
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# random seed: R02Se9d7defb0878dc8a90f62d9f42a715f3
# Start of hb tests
# Start of paint tests
# Start of ot tests
start clip rectangle 0 0 1e+03 1e+03
start transform 1 0 0 1 0 0
push group
start transform 1 0 0 1 150 0
start transform 1 0 -0 1 0 0
start clip glyph 174
start transform 1 0 0 1 0 0
solid 0 128 0 255
end transform
end clip
end transform
end transform
pop group mode 3
push group
start transform 1 0 0 1 -150 0
start transform 1 0 -0 1 0 0
start clip glyph 174
start transform 1 0 0 1 0 0
linear gradient
p0 500 250
p1 500 950
p2 600 250
colors 1
0 255 0 0 255
1 0 0 255 255
end transform
end clip
end transform
end transform
pop group mode 3
end transform
end clip
21 changes: 21 additions & 0 deletions tests/data/expected/test-6
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# random seed: R02S68886e711ff0007004bb488f8b8c3904
# Start of hb tests
# Start of paint tests
# Start of ot tests
start clip rectangle 100 250 900 950
start transform 1 0 0 1 0 0
start transform 1 0 -0 1 0 0
start clip glyph 6
start transform 1 0 0 1 0 0
linear gradient
p0 100 250
p1 900 250
p2 100 300
colors 1
0 255 0 0 255
1 0 0 255 255
end transform
end clip
end transform
end transform
end clip
21 changes: 21 additions & 0 deletions tests/data/expected/test-92
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# random seed: R02Se8a9546dc34a7e4d4f5c5e997ddcf0d8
# Start of hb tests
# Start of paint tests
# Start of ot tests
start clip rectangle 0 0 1e+03 1e+03
start transform 1 0 0 1 0 0
start transform 1 0 -0 1 0 0
start clip glyph 2
start transform 1 0 0 1 0 0
radial gradient
p0 166 768 radius 0
p1 166 768 radius 256
colors 1
0 0 128 0 255
0.5 255 255 255 255
1 255 0 0 255
end transform
end clip
end transform
end transform
end clip
Binary file added tests/data/noto_handwriting-cff2_colr_1.otf
Binary file not shown.
Binary file added tests/data/test_glyphs-glyf_colr_1.ttf
Binary file not shown.
Loading

0 comments on commit 7d5e986

Please sign in to comment.