test-paint: Use %.3g for results

This produces more readable output.
This commit is contained in:
Matthias Clasen 2023-01-09 13:42:22 -05:00
parent ec78a486bf
commit 5f976d86a7
15 changed files with 271 additions and 277 deletions

View File

@ -1,285 +1,281 @@
# random seed: R02S79074e3f6ed33cb4f77c57830d098cea start clip rectangle 0 500 500 1e+03
# Start of hb tests start transform 1 0 0 1 0 0
# Start of paint tests
# Start of ot tests
start clip rectangle 0.000 500.000 500.000 1000.000
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000
push group push group
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 159 start clip glyph 159
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 128 128 128 102 solid 128 128 128 102
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 159 start clip glyph 159
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 128 128 128 102 solid 128 128 128 102
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 159 start clip glyph 159
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 128 128 128 102 solid 128 128 128 102
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 159 start clip glyph 159
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 128 128 128 102 solid 128 128 128 102
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 159 start clip glyph 159
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 128 128 128 102 solid 128 128 128 102
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 159 start clip glyph 159
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 128 128 128 102 solid 128 128 128 102
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 159 start clip glyph 159
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 128 128 128 102 solid 128 128 128 102
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 159 start clip glyph 159
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 128 128 128 102 solid 128 128 128 102
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 159 start clip glyph 159
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 128 128 128 102 solid 128 128 128 102
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 159 start clip glyph 159
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 128 128 128 102 solid 128 128 128 102
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 159 start clip glyph 159
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 128 128 128 102 solid 128 128 128 102
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 159 start clip glyph 159
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 128 128 128 102 solid 128 128 128 102
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 159 start clip glyph 159
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 128 128 128 102 solid 128 128 128 102
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 159 start clip glyph 159
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 128 128 128 102 solid 128 128 128 102
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 159 start clip glyph 159
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 128 128 128 102 solid 128 128 128 102
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 159 start clip glyph 159
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 128 128 128 102 solid 128 128 128 102
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 159 start clip glyph 159
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 128 128 128 102 solid 128 128 128 102
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 159 start clip glyph 159
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 128 128 128 102 solid 128 128 128 102
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 159 start clip glyph 159
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 128 128 128 102 solid 128 128 128 102
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 159 start clip glyph 159
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 128 128 128 102 solid 128 128 128 102
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 159 start clip glyph 159
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 128 128 128 102 solid 128 128 128 102
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 159 start clip glyph 159
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 128 128 128 102 solid 128 128 128 102
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 159 start clip glyph 159
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 128 128 128 102 solid 128 128 128 102
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 159 start clip glyph 159
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 128 128 128 102 solid 128 128 128 102
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 159 start clip glyph 159
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 128 128 128 102 solid 128 128 128 102
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 159 start clip glyph 159
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 128 128 128 102 solid 128 128 128 102
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 159 start clip glyph 159
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 128 128 128 102 solid 128 128 128 102
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 159 start clip glyph 159
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 128 128 128 102 solid 128 128 128 102
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 159 start clip glyph 159
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 128 128 128 102 solid 128 128 128 102
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 159 start clip glyph 159
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 128 128 128 102 solid 128 128 128 102
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 159 start clip glyph 159
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 128 128 128 102 solid 128 128 128 102
end transform end transform
end clip end clip

View File

@ -1,64 +1,64 @@
# random seed: R02Sfe3faff817e7ab3e4b8259ff59adc0ba # random seed: R02Sdee1b629f80ebe7cea3c793d13a31f83
# Start of hb tests # Start of hb tests
# Start of paint tests # Start of paint tests
# Start of ot tests # Start of ot tests
start clip rectangle 64.000 -224.000 1216.000 928.000 start clip rectangle 64 -224 1.22e+03 928
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 13 start clip glyph 13
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
start transform 1.000000 0.000000 0.000000 0.976807 0.000000 0.000000 start transform 1 0 0 0.977 0 0
radial gradient radial gradient
p0 280.000000 440.000000 radius 0.000000 p0 280 440 radius 0
p1 280.000000 440.000000 radius 467.000000 p1 280 440 radius 467
colors colors
0.000000 186 141 104 255 0 186 141 104 255
0.448792 183 138 103 255 0.449 183 138 103 255
0.808594 173 130 100 255 0.809 173 130 100 255
1.000000 164 123 98 255 1 164 123 98 255
end transform end transform
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 14 start clip glyph 14
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
linear gradient linear gradient
p0 231.000000 -27.000000 p0 231 -27
p1 1019.000000 -27.000000 p1 1.02e+03 -27
p2 231.000000 -815.000000 p2 231 -815
colors colors
0.000000 164 123 98 255 0 164 123 98 255
1.000000 164 123 98 255 1 164 123 98 255
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 15 start clip glyph 15
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 145 103 77 255 solid 145 103 77 255
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 16 start clip glyph 16
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 30 136 229 255 solid 30 136 229 255
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 21 start clip glyph 21
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 145 103 77 255 solid 145 103 77 255
end transform end transform
end clip end clip
@ -66,24 +66,24 @@ start clip rectangle 64.000 -224.000 1216.000 928.000
pop group mode 3 pop group mode 3
push group push group
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 16 start clip glyph 16
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
linear gradient linear gradient
p0 669.000000 776.000000 p0 669 776
p1 180.000000 -106.000000 p1 180 -106
p2 -212.000000 1265.000000 p2 -212 1.26e+03
colors colors
0.000000 100 181 246 255 0 100 181 246 255
1.000000 33 150 243 255 1 33 150 243 255
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 18 start clip glyph 18
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 66 66 66 51 solid 66 66 66 51
end transform end transform
end clip end clip
@ -91,27 +91,27 @@ start clip rectangle 64.000 -224.000 1216.000 928.000
pop group mode 3 pop group mode 3
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 19 start clip glyph 19
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
start transform 1.000000 0.000000 0.000000 0.969116 0.000000 0.000000 start transform 1 0 0 0.969 0 0
radial gradient radial gradient
p0 588.000000 198.000000 radius 0.000000 p0 588 198 radius 0
p1 588.000000 198.000000 radius 342.000000 p1 588 198 radius 342
colors colors
0.000000 186 141 104 255 0 186 141 104 255
0.448792 183 138 103 255 0.449 183 138 103 255
0.808594 173 130 100 255 0.809 173 130 100 255
1.000000 164 123 98 255 1 164 123 98 255
end transform end transform
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 20 start clip glyph 20
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 145 103 77 255 solid 145 103 77 255
end transform end transform
end clip end clip

View File

@ -1,64 +1,64 @@
# random seed: R02S9246b617479596d9b98f2275470b9f47 # random seed: R02Sc0be3e63a5c3b507282531d9aac1c3f6
# Start of hb tests # Start of hb tests
# Start of paint tests # Start of paint tests
# Start of ot tests # Start of ot tests
start clip rectangle 250.000 -224.000 1172.000 928.000 start clip rectangle 19 -224 1.4e+03 928
start transform 1.000000 0.000000 0.200000 1.000000 0.000000 0.000000 start transform 1 0 0.2 1 0 0
push group push group
start transform 1.000000 0.000000 -0.200000 1.000000 0.000000 0.000000 start transform 1 0 -0.2 1 0 0
start clip glyph 13 start clip glyph 13
start transform 1.000000 0.000000 0.200000 1.000000 0.000000 0.000000 start transform 1 0 0.2 1 0 0
start transform 1.000000 0.000000 0.000000 0.976807 0.000000 0.000000 start transform 1 0 0 0.977 0 0
radial gradient radial gradient
p0 280.000000 440.000000 radius 0.000000 p0 280 440 radius 0
p1 280.000000 440.000000 radius 467.000000 p1 280 440 radius 467
colors colors
0.000000 186 141 104 255 0 186 141 104 255
0.448792 183 138 103 255 0.449 183 138 103 255
0.808594 173 130 100 255 0.809 173 130 100 255
1.000000 164 123 98 255 1 164 123 98 255
end transform end transform
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.200000 1.000000 0.000000 0.000000 start transform 1 0 -0.2 1 0 0
start clip glyph 14 start clip glyph 14
start transform 1.000000 0.000000 0.200000 1.000000 0.000000 0.000000 start transform 1 0 0.2 1 0 0
linear gradient linear gradient
p0 231.000000 -27.000000 p0 231 -27
p1 1019.000000 -27.000000 p1 1.02e+03 -27
p2 231.000000 -815.000000 p2 231 -815
colors colors
0.000000 164 123 98 255 0 164 123 98 255
1.000000 164 123 98 255 1 164 123 98 255
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.200000 1.000000 0.000000 0.000000 start transform 1 0 -0.2 1 0 0
start clip glyph 15 start clip glyph 15
start transform 1.000000 0.000000 0.200000 1.000000 0.000000 0.000000 start transform 1 0 0.2 1 0 0
solid 145 103 77 255 solid 145 103 77 255
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.200000 1.000000 0.000000 0.000000 start transform 1 0 -0.2 1 0 0
start clip glyph 16 start clip glyph 16
start transform 1.000000 0.000000 0.200000 1.000000 0.000000 0.000000 start transform 1 0 0.2 1 0 0
solid 30 136 229 255 solid 30 136 229 255
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.200000 1.000000 0.000000 0.000000 start transform 1 0 -0.2 1 0 0
start clip glyph 21 start clip glyph 21
start transform 1.000000 0.000000 0.200000 1.000000 0.000000 0.000000 start transform 1 0 0.2 1 0 0
solid 145 103 77 255 solid 145 103 77 255
end transform end transform
end clip end clip
@ -66,24 +66,24 @@ start clip rectangle 250.000 -224.000 1172.000 928.000
pop group mode 3 pop group mode 3
push group push group
push group push group
start transform 1.000000 0.000000 -0.200000 1.000000 0.000000 0.000000 start transform 1 0 -0.2 1 0 0
start clip glyph 16 start clip glyph 16
start transform 1.000000 0.000000 0.200000 1.000000 0.000000 0.000000 start transform 1 0 0.2 1 0 0
linear gradient linear gradient
p0 669.000000 776.000000 p0 669 776
p1 180.000000 -106.000000 p1 180 -106
p2 -212.000000 1265.000000 p2 -212 1.26e+03
colors colors
0.000000 100 181 246 255 0 100 181 246 255
1.000000 33 150 243 255 1 33 150 243 255
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.200000 1.000000 0.000000 0.000000 start transform 1 0 -0.2 1 0 0
start clip glyph 18 start clip glyph 18
start transform 1.000000 0.000000 0.200000 1.000000 0.000000 0.000000 start transform 1 0 0.2 1 0 0
solid 66 66 66 51 solid 66 66 66 51
end transform end transform
end clip end clip
@ -91,27 +91,27 @@ start clip rectangle 250.000 -224.000 1172.000 928.000
pop group mode 3 pop group mode 3
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.200000 1.000000 0.000000 0.000000 start transform 1 0 -0.2 1 0 0
start clip glyph 19 start clip glyph 19
start transform 1.000000 0.000000 0.200000 1.000000 0.000000 0.000000 start transform 1 0 0.2 1 0 0
start transform 1.000000 0.000000 0.000000 0.969116 0.000000 0.000000 start transform 1 0 0 0.969 0 0
radial gradient radial gradient
p0 588.000000 198.000000 radius 0.000000 p0 588 198 radius 0
p1 588.000000 198.000000 radius 342.000000 p1 588 198 radius 342
colors colors
0.000000 186 141 104 255 0 186 141 104 255
0.448792 183 138 103 255 0.449 183 138 103 255
0.808594 173 130 100 255 0.809 173 130 100 255
1.000000 164 123 98 255 1 164 123 98 255
end transform end transform
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 -0.200000 1.000000 0.000000 0.000000 start transform 1 0 -0.2 1 0 0
start clip glyph 20 start clip glyph 20
start transform 1.000000 0.000000 0.200000 1.000000 0.000000 0.000000 start transform 1 0 0.2 1 0 0
solid 145 103 77 255 solid 145 103 77 255
end transform end transform
end clip end clip

View File

@ -1,4 +1,4 @@
# random seed: R02S7937c19e60fc4b20bb698fb4289d70b2 # random seed: R02S80e82754b9935f344ead107f19141fd8
# Start of hb tests # Start of hb tests
# Start of paint tests # Start of paint tests
# Start of ot tests # Start of ot tests

View File

@ -1,4 +1,4 @@
# random seed: R02Se65314e4af37a518c1ca84628e2b5345 # random seed: R02Sa65f915f5906b4e87b390061728fa559
# Start of hb tests # Start of hb tests
# Start of paint tests # Start of paint tests
# Start of ot tests # Start of ot tests

View File

@ -1,4 +1,4 @@
# random seed: R02S33d21844bda1270e5a9c27fc9de11893 # random seed: R02S76ed3cce2b7c61c2881fcdd4c818fd11
# Start of hb tests # Start of hb tests
# Start of paint tests # Start of paint tests
# Start of ot tests # Start of ot tests

View File

@ -1,20 +1,20 @@
# random seed: R02S6a47a2a3dcd4dd467bc06d257976e1a9 # random seed: R02S6881f224d108394ed8714867c314f5ac
# Start of hb tests # Start of hb tests
# Start of paint tests # Start of paint tests
# Start of ot tests # Start of ot tests
start clip rectangle 0.000 0.000 1000.000 1000.000 start clip rectangle 0 0 1e+03 1e+03
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 174 start clip glyph 174
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
sweep gradient sweep gradient
center 500.000000 600.000000 center 500 600
angles 0.000000 6.283185 angles 0 6.28
colors colors
0.250000 250 240 230 255 0.25 250 240 230 255
0.416687 0 0 255 255 0.417 0 0 255 255
0.583313 255 0 0 255 0.583 255 0 0 255
0.750000 47 79 79 255 0.75 47 79 79 255
end transform end transform
end clip end clip
end transform end transform

View File

@ -1,23 +1,23 @@
# random seed: R02S854533ba425571f0b03ae88b9901992e # random seed: R02S82402462bc1b63cdb271c35656bf0115
# Start of hb tests # Start of hb tests
# Start of paint tests # Start of paint tests
# Start of ot tests # Start of ot tests
start clip rectangle 250.000 250.000 882.212 1022.905 start clip rectangle 250 250 882 1.02e+03
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 3 start clip glyph 3
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 0 0 255 127 solid 0 0 255 127
end transform end transform
end clip end clip
end transform end transform
push group push group
start transform 1.000000 0.000000 0.000000 1.000000 1000.000000 1000.000000 start transform 1 0 0 1 1e+03 1e+03
start transform 1.000000 -0.363874 -0.176283 1.000000 0.000000 0.000000 start transform 1 -0.364 -0.176 1 0 0
start transform 1.000000 0.000000 0.000000 1.000000 -1000.000000 -1000.000000 start transform 1 0 0 1 -1e+03 -1e+03
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 3 start clip glyph 3
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 255 165 0 178 solid 255 165 0 178
end transform end transform
end clip end clip

View File

@ -1,21 +1,21 @@
# random seed: R02S7f3095d724de91c5503e9c1f76326f6b # random seed: R02S5cda42bdbc7e64fabf5ef578888a92e4
# Start of hb tests # Start of hb tests
# Start of paint tests # Start of paint tests
# Start of ot tests # Start of ot tests
start clip rectangle 250.000 250.000 950.000 950.000 start clip rectangle 250 250 950 950
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 3 start clip glyph 3
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 0 0 255 127 solid 0 0 255 127
end transform end transform
end clip end clip
end transform end transform
push group push group
start transform 1.000000 0.000000 0.000000 1.000000 200.000000 200.000000 start transform 1 0 0 1 200 200
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 3 start clip glyph 3
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 255 165 0 178 solid 255 165 0 178
end transform end transform
end clip end clip

View File

@ -1,25 +1,25 @@
# random seed: R02Se15453cc9fdc9e200591def4c128392b # random seed: R02S8d1571dc3f9024010eb4bf6074127320
# Start of hb tests # Start of hb tests
# Start of paint tests # Start of paint tests
# Start of ot tests # Start of ot tests
start clip rectangle 0.000 0.000 1000.000 1000.000 start clip rectangle 0 0 1e+03 1e+03
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
push group push group
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 3 start clip glyph 3
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 0 0 0 255 solid 0 0 0 255
end transform end transform
end clip end clip
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 0.000000 1.000000 333.000000 667.000000 start transform 1 0 0 1 333 667
start transform 0.500000 0.000000 0.000000 0.500000 0.000000 0.000000 start transform 0.5 0 0 0.5 0 0
start transform 1.000000 0.000000 0.000000 1.000000 -333.000000 -667.000000 start transform 1 0 0 1 -333 -667
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 2 start clip glyph 2
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 255 220 1 255 solid 255 220 1 255
end transform end transform
end clip end clip
@ -28,12 +28,12 @@ start clip rectangle 0.000 0.000 1000.000 1000.000
end transform end transform
end transform end transform
push group push group
start transform 1.000000 0.000000 0.000000 1.000000 667.000000 333.000000 start transform 1 0 0 1 667 333
start transform 0.500000 0.000000 0.000000 0.500000 0.000000 0.000000 start transform 0.5 0 0 0.5 0 0
start transform 1.000000 0.000000 0.000000 1.000000 -667.000000 -333.000000 start transform 1 0 0 1 -667 -333
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 2 start clip glyph 2
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 104 199 232 255 solid 104 199 232 255
end transform end transform
end clip end clip

View File

@ -1,20 +1,20 @@
# random seed: R02S8af248f412525e6d315d6ba13ef5a667 # random seed: R02S1c512dff9aebeb85f24ab3d9f6b1d47b
# Start of hb tests # Start of hb tests
# Start of paint tests # Start of paint tests
# Start of ot tests # Start of ot tests
start clip rectangle 100.000 250.000 1200.000 950.000 start clip rectangle 100 250 1.2e+03 950
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 165 start clip glyph 165
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
linear gradient linear gradient
p0 100.000000 950.000000 p0 100 950
p1 2300.000000 950.000000 p1 2.3e+03 950
p2 -1000.000000 250.000000 p2 -1e+03 250
colors colors
0.000000 255 0 0 255 0 255 0 0 255
0.500000 0 0 255 255 0.5 0 0 255 255
1.000000 255 255 0 255 1 255 255 0 255
end transform end transform
end clip end clip
end transform end transform

View File

@ -1,14 +1,14 @@
# random seed: R02S7d9ca0e7e824d9cbc820e8f97ce75bca # random seed: R02S3a00c69b6aa0945cd49054a8c5f24179
# Start of hb tests # Start of hb tests
# Start of paint tests # Start of paint tests
# Start of ot tests # Start of ot tests
start clip rectangle 0.000 0.000 1000.000 1000.000 start clip rectangle 0 0 1e+03 1e+03
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
push group push group
start transform 1.000000 0.000000 0.000000 1.000000 150.000000 0.000000 start transform 1 0 0 1 150 0
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 174 start clip glyph 174
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
solid 0 128 0 255 solid 0 128 0 255
end transform end transform
end clip end clip
@ -16,17 +16,17 @@ start clip rectangle 0.000 0.000 1000.000 1000.000
end transform end transform
pop group mode 3 pop group mode 3
push group push group
start transform 1.000000 0.000000 0.000000 1.000000 -150.000000 0.000000 start transform 1 0 0 1 -150 0
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 174 start clip glyph 174
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
linear gradient linear gradient
p0 500.000000 250.000000 p0 500 250
p1 500.000000 950.000000 p1 500 950
p2 600.000000 250.000000 p2 600 250
colors colors
0.000000 255 0 0 255 0 255 0 0 255
1.000000 0 0 255 255 1 0 0 255 255
end transform end transform
end clip end clip
end transform end transform

View File

@ -1,19 +1,19 @@
# random seed: R02Se9d3fcbe22c6d1bdeba50c1bb5925c63 # random seed: R02S60be6df530a67ddecbb0a926facb59d9
# Start of hb tests # Start of hb tests
# Start of paint tests # Start of paint tests
# Start of ot tests # Start of ot tests
start clip rectangle 100.000 250.000 900.000 950.000 start clip rectangle 100 250 900 950
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 6 start clip glyph 6
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
linear gradient linear gradient
p0 100.000000 250.000000 p0 100 250
p1 900.000000 250.000000 p1 900 250
p2 100.000000 300.000000 p2 100 300
colors colors
0.000000 255 0 0 255 0 255 0 0 255
1.000000 0 0 255 255 1 0 0 255 255
end transform end transform
end clip end clip
end transform end transform

View File

@ -1,19 +1,19 @@
# random seed: R02S77cf1b943dc01ba3eaec28a3033a9f04 # random seed: R02Sd9a0fc8b06b071d89cd2ec685a0ac877
# Start of hb tests # Start of hb tests
# Start of paint tests # Start of paint tests
# Start of ot tests # Start of ot tests
start clip rectangle 0.000 0.000 1000.000 1000.000 start clip rectangle 0 0 1e+03 1e+03
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
start transform 1.000000 0.000000 -0.000000 1.000000 0.000000 0.000000 start transform 1 0 -0 1 0 0
start clip glyph 2 start clip glyph 2
start transform 1.000000 0.000000 0.000000 1.000000 0.000000 0.000000 start transform 1 0 0 1 0 0
radial gradient radial gradient
p0 166.000000 768.000000 radius 0.000000 p0 166 768 radius 0
p1 166.000000 768.000000 radius 256.000000 p1 166 768 radius 256
colors colors
0.000000 0 128 0 255 0 0 128 0 255
0.500000 255 255 255 255 0.5 255 255 255 255
1.000000 255 0 0 255 1 255 0 0 255
end transform end transform
end clip end clip
end transform end transform

View File

@ -70,7 +70,7 @@ push_transform (hb_paint_funcs_t *funcs,
{ {
paint_data_t *data = user_data; paint_data_t *data = user_data;
print (data, "start transform %f %f %f %f %f %f", xx, yx, xy, yy, dx, dy); print (data, "start transform %.3g %.3g %.3g %.3g %.3g %.3g", xx, yx, xy, yy, dx, dy);
data->level++; data->level++;
} }
@ -106,7 +106,7 @@ push_clip_rectangle (hb_paint_funcs_t *funcs,
{ {
paint_data_t *data = user_data; paint_data_t *data = user_data;
print (data, "start clip rectangle %.3f %.3f %.3f %.3f", xmin, ymin, xmax, ymax); print (data, "start clip rectangle %.3g %.3g %.3g %.3g", xmin, ymin, xmax, ymax);
data->level++; data->level++;
} }
@ -152,7 +152,7 @@ paint_image (hb_paint_funcs_t *funcs,
char buf[5] = { 0, }; char buf[5] = { 0, };
hb_tag_to_string (format, buf); hb_tag_to_string (format, buf);
print (data, "image type %s size %u %u slant %f extents %d %d %d %d\n", print (data, "image type %s size %u %u slant %.3g extents %d %d %d %d\n",
buf, width, height, slant, buf, width, height, slant,
extents->x_bearing, extents->y_bearing, extents->width, extents->height); extents->x_bearing, extents->y_bearing, extents->width, extents->height);
@ -173,7 +173,7 @@ print_color_line (paint_data_t *data,
print (data, "colors"); print (data, "colors");
data->level += 1; data->level += 1;
for (unsigned int i = 0; i < len; i++) for (unsigned int i = 0; i < len; i++)
print (data, "%f %d %d %d %d", print (data, "%.3g %d %d %d %d",
stops[i].offset, stops[i].offset,
hb_color_get_red (stops[i].color), hb_color_get_red (stops[i].color),
hb_color_get_green (stops[i].color), hb_color_get_green (stops[i].color),
@ -195,9 +195,9 @@ paint_linear_gradient (hb_paint_funcs_t *funcs,
print (data, "linear gradient"); print (data, "linear gradient");
data->level += 1; data->level += 1;
print (data, "p0 %f %f", x0, y0); print (data, "p0 %.3g %.3g", x0, y0);
print (data, "p1 %f %f", x1, y1); print (data, "p1 %.3g %.3g", x1, y1);
print (data, "p2 %f %f", x2, y2); print (data, "p2 %.3g %.3g", x2, y2);
print_color_line (data, color_line); print_color_line (data, color_line);
data->level -= 1; data->level -= 1;
@ -215,8 +215,8 @@ paint_radial_gradient (hb_paint_funcs_t *funcs,
print (data, "radial gradient"); print (data, "radial gradient");
data->level += 1; data->level += 1;
print (data, "p0 %f %f radius %f", x0, y0, r0); print (data, "p0 %.3g %.3g radius %.3g", x0, y0, r0);
print (data, "p1 %f %f radius %f", x1, y1, r1); print (data, "p1 %.3g %.3g radius %.3g", x1, y1, r1);
print_color_line (data, color_line); print_color_line (data, color_line);
data->level -= 1; data->level -= 1;
@ -235,8 +235,8 @@ paint_sweep_gradient (hb_paint_funcs_t *funcs,
print (data, "sweep gradient"); print (data, "sweep gradient");
data->level++; data->level++;
print (data, "center %f %f", cx, cy); print (data, "center %.3g %.3g", cx, cy);
print (data, "angles %f %f", start_angle, end_angle); print (data, "angles %.3g %.3g", start_angle, end_angle);
print_color_line (data, color_line); print_color_line (data, color_line);
data->level -= 1; data->level -= 1;
@ -265,7 +265,6 @@ pop_group (hb_paint_funcs_t *funcs,
typedef struct { typedef struct {
const char *font_file; const char *font_file;
int scale;
float slant; float slant;
hb_codepoint_t glyph; hb_codepoint_t glyph;
unsigned int palette; unsigned int palette;
@ -285,21 +284,21 @@ typedef struct {
*/ */
static paint_test_t paint_tests[] = { static paint_test_t paint_tests[] = {
/* COLRv1 */ /* COLRv1 */
{ NOTO_HAND, 1500, 0., 10, 0, "hand-10" }, { NOTO_HAND, 0., 10, 0, "hand-10" },
{ NOTO_HAND, 1000, 0.2, 10, 0, "hand-10.2" }, { NOTO_HAND, 0.2, 10, 0, "hand-10.2" },
{ TEST_GLYPHS, 1000, 0, 6, 0, "test-6" }, // linear gradient { TEST_GLYPHS, 0, 6, 0, "test-6" }, // linear gradient
{ TEST_GLYPHS, 1000, 0, 10, 0, "test-10" }, // sweep gradient { TEST_GLYPHS, 0, 10, 0, "test-10" }, // sweep gradient
{ TEST_GLYPHS, 1000, 0, 92, 0, "test-92" }, // radial gradient { TEST_GLYPHS, 0, 92, 0, "test-92" }, // radial gradient
{ TEST_GLYPHS, 1000, 0, 106, 0, "test-106" }, { TEST_GLYPHS, 0, 106, 0, "test-106" },
{ TEST_GLYPHS, 1000, 0, 116, 0, "test-116" }, // compositing { TEST_GLYPHS, 0, 116, 0, "test-116" }, // compositing
{ TEST_GLYPHS, 1000, 0, 123, 0, "test-123" }, { TEST_GLYPHS, 0, 123, 0, "test-123" },
{ TEST_GLYPHS, 1000, 0, 165, 0, "test-165" }, // linear gradient { TEST_GLYPHS, 0, 165, 0, "test-165" }, // linear gradient
{ TEST_GLYPHS, 1000, 0, 175, 0, "test-175" }, // layers { TEST_GLYPHS, 0, 175, 0, "test-175" }, // layers
{ BAD_COLRV1, 1000, 0, 154, 0, "bad-154" }, // recursion { BAD_COLRV1, 0, 154, 0, "bad-154" }, // recursion
/* COLRv0 */ /* COLRv0 */
{ ROCHER_ABC, 1000, 0.3, 1, 0, "rocher-1" }, { ROCHER_ABC, 0.3, 1, 0, "rocher-1" },
{ ROCHER_ABC, 1000, 0.3, 2, 2, "rocher-2" }, { ROCHER_ABC, 0.3, 2, 2, "rocher-2" },
{ ROCHER_ABC, 1000, 0, 3, 200, "rocher-3" }, { ROCHER_ABC, 0, 3, 200, "rocher-3" },
}; };
static void static void
@ -319,7 +318,6 @@ test_hb_paint (gconstpointer d,
face = hb_test_open_font_file (test->font_file); face = hb_test_open_font_file (test->font_file);
font = hb_font_create (face); font = hb_font_create (face);
hb_font_set_scale (font, test->scale, test->scale);
hb_font_set_synthetic_slant (font, test->slant); hb_font_set_synthetic_slant (font, test->slant);
#ifdef HB_HAS_FREETYPE #ifdef HB_HAS_FREETYPE