From 35a6d90cf66648602dda47204edd6dfdcd1b726e Mon Sep 17 00:00:00 2001 From: Jonathan Kew Date: Fri, 10 Feb 2023 09:16:59 +0000 Subject: [PATCH] Add some additional tests for variable font 'slnt' behavior. These tests cover the regression affecting the Inter variable font, fixed by the preceding patch. Depends on D169335 Differential Revision: https://phabricator.services.mozilla.com/D169336 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1815679 gecko-commit: c8491c0074db8bc1f841c77720089583dbc72ac6 gecko-reviewers: emilio --- css/css-fonts/variations/font-slant-2c.html | 23 +++++++++++++++ .../variations/font-slant-3-ref.html | 23 +++++++++++++++ css/css-fonts/variations/font-slant-3.html | 27 ++++++++++++++++++ .../resources/Inter.no-var.subset.ttf | Bin 0 -> 2184 bytes 4 files changed, 73 insertions(+) create mode 100644 css/css-fonts/variations/font-slant-2c.html create mode 100644 css/css-fonts/variations/font-slant-3-ref.html create mode 100644 css/css-fonts/variations/font-slant-3.html create mode 100644 css/css-fonts/variations/resources/Inter.no-var.subset.ttf diff --git a/css/css-fonts/variations/font-slant-2c.html b/css/css-fonts/variations/font-slant-2c.html new file mode 100644 index 00000000000000..5436fc1b671df4 --- /dev/null +++ b/css/css-fonts/variations/font-slant-2c.html @@ -0,0 +1,23 @@ + + +CSS test: mapping of font-style:oblique to opentype 'slnt' axis + + + + + +

Test passes if none of the following lines are displayed with a slanted font.

+
slant
+
slant
+
slant
+
slant
diff --git a/css/css-fonts/variations/font-slant-3-ref.html b/css/css-fonts/variations/font-slant-3-ref.html new file mode 100644 index 00000000000000..542479db51ca3f --- /dev/null +++ b/css/css-fonts/variations/font-slant-3-ref.html @@ -0,0 +1,23 @@ + + +CSS reference file: mapping of font-style:oblique to opentype 'slnt' axis + + +

Test passes if the following lines are displayed with a variety of synthetic slants.

+
slant
+
slant
+
slant
+
slant
diff --git a/css/css-fonts/variations/font-slant-3.html b/css/css-fonts/variations/font-slant-3.html new file mode 100644 index 00000000000000..047409ec35a3bb --- /dev/null +++ b/css/css-fonts/variations/font-slant-3.html @@ -0,0 +1,27 @@ + + +CSS test: mapping of font-style:oblique to opentype 'slnt' axis + + + + + +

Test passes if the following lines are displayed with a variety of synthetic slants.

+
slant
+
slant
+
slant
+
slant
diff --git a/css/css-fonts/variations/resources/Inter.no-var.subset.ttf b/css/css-fonts/variations/resources/Inter.no-var.subset.ttf new file mode 100644 index 0000000000000000000000000000000000000000..3f9669541a712338dbc8b618021dfadc3eaad916 GIT binary patch literal 2184 zcmZuyZA?>F7=F*a?QOw^kJ6SZepHH}ivnwDK_t$x51rACiP6rmjZ$jsY@sW~V8jd^ zn*G3t8*|36I435!AB@cy7iTuix`a7qOdty}{veSbizAy^W?~lP?m6wL(9PSNbDsA- z@5l4L=bl?)L}Z{Yl4;Xx^<|E(dz}+RYzwrFzOXmK7HdZ#$07FzyloMzIYjy{tolIc z;NHpVhZl&X4h(D1?`>WYed8YX#xUGLD00r~N8qo4Toeq)I#xGo1|eh6(on0<%dSal z;TwdU6ZUpQD3hwNzZ$Zw#T)h?n7uSar0FG+Z$(<$VslO!LFz`nABp-SL8a#y{JE?n zUW+Unzc_xt{dRWELn>GV1<{?&1Dp9emC+O+k9t>oM!yZBLK4^FfnVm}V-MyB!?!r@J#8CMpw#uNeddq%2{lUCs+9njmVItMOsPb9=sE2-aG2I*P|vc z#RP{ziFfE6H&#f`7aJMC?2%GIy;46-DiNC0j!+*$c{CB~h6Rtx!xstM0EuTQ!kUS- z0T$>hupSji$QGg&im57eN!+HY>SyX{^<(u^8b1Rph&CnWWF9XtA3T0Y4Bp8WF*uJl zj2MRI8>Su`)|>#u^D1~8r8wPZ25{)bNi--XT19RmZDDb-t74;6xlwYtDvIreimqg% zbc>|_P>9qxZ#}lYEkR>>F$efm1P<8O4sZA2Ksi^^?drAJ#^>ltl_pJS~t-$ z)HrEeX3o|cT>JJMI?OAZ#1u#GQ47np=d$>Wo*pF*BeADF1KyV8p404fyPXb;5kzwn z%oUhVo7{JY`tKi|xjyjjS9|6D*=B_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