From cc92b9b19f28fde29e3d231d8b02bdda71c03d59 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 10 Jan 2024 18:09:08 -0500 Subject: [PATCH] gsk: Add another font text This is similar to text-mixed-color, but it uses the COLRv1 table, to test our support for this font technology. --- .../gsk/compare/text-mixed-color-colrv1.node | 4 + .../gsk/compare/text-mixed-color-colrv1.png | Bin 0 -> 161 bytes .../gsk/fonts/text-mixed-color-colrv1.ttf | Bin 0 -> 720 bytes .../gsk/fonts/text-mixed-color-colrv1.ttx | 226 ++++++++++++++++++ testsuite/gsk/meson.build | 1 + 5 files changed, 231 insertions(+) create mode 100644 testsuite/gsk/compare/text-mixed-color-colrv1.node create mode 100644 testsuite/gsk/compare/text-mixed-color-colrv1.png create mode 100644 testsuite/gsk/fonts/text-mixed-color-colrv1.ttf create mode 100644 testsuite/gsk/fonts/text-mixed-color-colrv1.ttx diff --git a/testsuite/gsk/compare/text-mixed-color-colrv1.node b/testsuite/gsk/compare/text-mixed-color-colrv1.node new file mode 100644 index 0000000000..ba3908a930 --- /dev/null +++ b/testsuite/gsk/compare/text-mixed-color-colrv1.node @@ -0,0 +1,4 @@ +text { + font: "text-mixed-color-colrv1 15"; + glyphs: 1 20, 2 20, 3 20, 4 20 0 0 color, 5 20 0 0 color, 6 20 0 0 color; +} diff --git a/testsuite/gsk/compare/text-mixed-color-colrv1.png b/testsuite/gsk/compare/text-mixed-color-colrv1.png new file mode 100644 index 0000000000000000000000000000000000000000..0a032a04c3861bd64abc48a584930c44f20fcc00 GIT binary patch literal 161 zcmeAS@N?(olHy`uVBq!ia0vp^1wbsu!3HEHd?k2*REDREV@O8h+lz*L2NZZ%9QFSH z-<Id7w!PFFsE{NFtM{OqE*TYs0`(SN%)_}*-ryY6>SH59P57%R+S qe8|I*?qI=uNK)V&cA+W%wlK2Vb87f}e{v3JCxfS}pUXO@geCxnX*pK_ literal 0 HcmV?d00001 diff --git a/testsuite/gsk/fonts/text-mixed-color-colrv1.ttf b/testsuite/gsk/fonts/text-mixed-color-colrv1.ttf new file mode 100644 index 0000000000000000000000000000000000000000..9f6a4d308cbac7fb6d04f8aec90f05f9577d1a30 GIT binary patch literal 720 zcmc&yyGjF55IuJjUt!UxkoW=<2@;Ed0TGJ?5&|L;i1-7tB&!j2lMte;C}L$Nq_7e@ zTT4Gc#MaKjLPWt|uoKoZHxgeT;Ox%aIrF$PckYD(5W*1xh!sl3^=P(q0vJoQ?ibeb zMdf3Z_={<=%APXq*FKjt`n}>JD55xz=?W%26X3xDE^-J<%l?GD<4eGDtMAdD1 zK`M+-QiPp)*@A;Mu_M^Eyaoo)L)=dst68o+osXQdzDYa>=~a!NsmSBS#!%)BhJ*nx zH*87P+xsV3gV1&bsVv02PGqM#rR?;bl(zISwd48ir{fPvOn_|CndI85vkkEVe%w-HYAf&H0Ss(sTu~< Xry4L| + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text-mixed-color-colrv1 + + + + + + + + + + + + + + + + + + diff --git a/testsuite/gsk/meson.build b/testsuite/gsk/meson.build index c29be8d081..71433c9362 100644 --- a/testsuite/gsk/meson.build +++ b/testsuite/gsk/meson.build @@ -135,6 +135,7 @@ compare_render_tests = [ 'stroke-opacity', 'stroke-with-3d-contents-nogl-nocairo', 'text-mixed-color-nocairo', + 'text-mixed-color-colrv1', 'texture-coords', 'texture-scale-filters-nocairo', 'texture-scale-magnify-10000x',