From 9f4f65be4a1d96048ca1783742768a979884b51a Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 11 Jan 2024 23:04:31 -0500 Subject: [PATCH] gsk: Add test for clipped big glyphs Tests the fix in the previous commit 93715b963eed9975b9b7a. Sadly, the flipped variant of this test fails with the cairo renderer, so it is marked as -nocairo. All the other renderers pass it. --- .../gsk/compare/big-box-glyph-nocairo.node | 7 +++++++ .../gsk/compare/big-box-glyph-nocairo.png | Bin 0 -> 1002 bytes testsuite/gsk/fonts/text-mixed-color.ttf | Bin 632 -> 680 bytes testsuite/gsk/fonts/text-mixed-color.ttx | 18 ++++++++++++++++++ testsuite/gsk/meson.build | 1 + 5 files changed, 26 insertions(+) create mode 100644 testsuite/gsk/compare/big-box-glyph-nocairo.node create mode 100644 testsuite/gsk/compare/big-box-glyph-nocairo.png diff --git a/testsuite/gsk/compare/big-box-glyph-nocairo.node b/testsuite/gsk/compare/big-box-glyph-nocairo.node new file mode 100644 index 0000000000..a60455ea0e --- /dev/null +++ b/testsuite/gsk/compare/big-box-glyph-nocairo.node @@ -0,0 +1,7 @@ +transform { + transform: scale(30); + child: text { + font: "text-mixed-color 7.5"; + glyphs: 7 10; + } +} diff --git a/testsuite/gsk/compare/big-box-glyph-nocairo.png b/testsuite/gsk/compare/big-box-glyph-nocairo.png new file mode 100644 index 0000000000000000000000000000000000000000..dec701227dc350fbc7ea653ca8eaee8c4e28ef0f GIT binary patch literal 1002 zcmeAS@N?(olHy`uVBq!ia0vp^mlzlrGdS3QET#QRpE58oZ}fC=45^s&_OhcOQy>rP zK^?JzP2WB?2-_qib&2fX#k)tw$QY;^E12^*>dwD2XQ~V5f4*b<`HtPA>v6Z)3+8N{ zUzNjq*t3O&QPI)CLqI@?Wt2G@4x@Hn@mvv4FO#qV4vv&Xh literal 0 HcmV?d00001 diff --git a/testsuite/gsk/fonts/text-mixed-color.ttf b/testsuite/gsk/fonts/text-mixed-color.ttf index b875433905c564ce3d19212988b41f940e111592..291102a1b9e4d9b690b0ebaf030ed7c445708c89 100644 GIT binary patch delta 231 zcmeytvVwJjxNQOh1A~rpfTIuNe+FR&2Bsb$Un)5_v4EkB!Ipu6(FVvjNzbWFJNCFZ8q zT`AiFG#q4@5(6WUWR#qBRax3Gp5Nvx0~1IY1H;2ZK>I-SvD}P_7i?KM7&sW1CJQlY zPBv$hV|1S!#;DF5!@w}PhH;`A6G$NoPyquo13LqQp`xIou%MzK3&S4CqFrnA%|fCP%;N7DUh33QNX~-zzXDZ0Qm}eiMgqD zSIV{k4d(&!l^7U-B%|c40@u^e + @@ -80,6 +81,7 @@ + @@ -141,6 +143,21 @@ + + + + + + + + + + + + + + + @@ -182,6 +199,7 @@ + diff --git a/testsuite/gsk/meson.build b/testsuite/gsk/meson.build index b0fb721e62..28ddebb4b7 100644 --- a/testsuite/gsk/meson.build +++ b/testsuite/gsk/meson.build @@ -10,6 +10,7 @@ node_parser = executable('node-parser', 'node-parser.c', ) compare_render_tests = [ + 'big-box-glyph-nocairo', 'big-checkerboard', 'big-checkerboard-scaled-down', 'big-checkerboard-scaled-down-nearest',