From b7fd02297dfe3769bc4c340e89dd0f6012cead9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Wang?= Date: Mon, 8 Jun 2020 20:00:47 +0000 Subject: [PATCH] Bug 1642656 [wpt PR 23915] - Add a test to check edge cases of radical kerning., a=testonly Automatic update from web-platform-tests Add a test to check edge cases of radical kerning. (#23915) https://github.com/mathml-refresh/mathml/issues/213 -- wpt-commits: 0546635a0f399f57b0f26d804926c2ca5049e376 wpt-pr: 23915 Differential Revision: https://phabricator.services.mozilla.com/D78778 --- ...ernbeforedegree1000-rulethickness1000.woff | Bin 0 -> 1380 bytes .../radicals/root-parameters-2.html | 78 ++++++++++++++++++ .../tests/mathml/tools/radicals.py | 13 +++ 3 files changed, 91 insertions(+) create mode 100644 testing/web-platform/tests/fonts/math/radical-negativekernbeforedegree1000-rulethickness1000.woff create mode 100644 testing/web-platform/tests/mathml/presentation-markup/radicals/root-parameters-2.html diff --git a/testing/web-platform/tests/fonts/math/radical-negativekernbeforedegree1000-rulethickness1000.woff b/testing/web-platform/tests/fonts/math/radical-negativekernbeforedegree1000-rulethickness1000.woff new file mode 100644 index 0000000000000000000000000000000000000000..ef00335b1cbedcafa934dcab1fae9fe2e17715fa GIT binary patch literal 1380 zcmZXUeN@s{7{@RE5b%JCY3^q!l2+>l6cAHeHOOR%qSi=zG5KMD&eS~FNz>*8GzD>q zmg2N>#n#(aR@*eqGniI7MJ?-ut(sePmTtLH^QHN+i`&^hd(Qd%?tQ-ZInRCWxxeRT zMGFMcVsSJ8_A)>Q(8z88XB+=-p#lLN0OSAwxRsC=Lx}s&0)bcr0KN`JFM@dLg5oZS z_~Ok_y8-=57^e+cN|Q%_=+A-kc&PCpm@CS`?@5zpzy3AIqg6;tXT|wstsZ<0BO=}m=9;u2=fqPK)N(d4z*fH zF0843B_15g*p~^Z@ z4@iJ97&Y+LfiN*S0f2ww^UNkw8M2(8DjF;M8_1wz}U*&H-az8oxQu8pW{*{EF;ve=7z(C4|hqm?z=qe=v(SGIUjN1=*}NC zm9o2%nP0@0&r-;ELxuEVy0g$--XrKYgsuBEHP-lTWWSH0ugPbkR>g7s_Sx-F3EMgIrFTk{piOt3cqJ37$O(1j-l0w0tPoOb1j2WI3)Xt)!oYb z^A%_Ojbo12o2mKx#V|!a=0Ok;s2R8s)O^^T;7GR+j2<2a)a{sYc8)k=9-Ax5lJM>$ zIN!yHN{vvnq7c&D% zlS_IgLzRO?KBLYKl{DI|;bBQ2XPUfSjs{N3Q4}vjOYP-on+&ZYv+LDk8LU?v61zCS zz>x(o3U(&c?l_)8^3m}Mu4Lx%rKkDGC4I{VJF#o2*YGRwRil2gg^H6`wJQ{E)W$G&Hwe_Kw`G(+-<4}Yt1QA zax?6Ndl!6ua1ny+@pKu|(NoM^U8#(q4c0l@clp!Dyd4^;L^WC_#@*Fn8+_5zBjS8R z5x{k%EvB*U<=qV!VXHc=Vpf_NjM#2BlyK!(IP0 im)NfF@;6B8C7_edXH)IK`8L;X__DnC2ir?vv%dkw^atYr literal 0 HcmV?d00001 diff --git a/testing/web-platform/tests/mathml/presentation-markup/radicals/root-parameters-2.html b/testing/web-platform/tests/mathml/presentation-markup/radicals/root-parameters-2.html new file mode 100644 index 0000000000000..c5f10b7babf58 --- /dev/null +++ b/testing/web-platform/tests/mathml/presentation-markup/radicals/root-parameters-2.html @@ -0,0 +1,78 @@ + + + + +Radical parameters + + + + + + + + + +
+

+ + + + + + +

+
+

+ + + + + + +

+ + diff --git a/testing/web-platform/tests/mathml/tools/radicals.py b/testing/web-platform/tests/mathml/tools/radicals.py index e13f9333f3adb..d0d7698c41a98 100644 --- a/testing/web-platform/tests/mathml/tools/radicals.py +++ b/testing/web-platform/tests/mathml/tools/radicals.py @@ -115,3 +115,16 @@ def createStretchyRadical(aFont): f.math.RadicalRuleThickness = v2 f.math.RadicalVerticalGap = v1 mathfont.save(f) + +v1 = 1 * mathfont.em +v2 = 1 * mathfont.em +f = mathfont.create("radical-negativekernbeforedegree%d-rulethickness%d" % (v1, v2), "Copyright (c) 2020 Igalia S.L.") +createStretchyRadical(f) +f.math.RadicalDegreeBottomRaisePercent = 0 +f.math.RadicalDisplayStyleVerticalGap = 0 +f.math.RadicalExtraAscender = 0 +f.math.RadicalKernAfterDegree = 0 +f.math.RadicalKernBeforeDegree = -v1 +f.math.RadicalRuleThickness = v2 +f.math.RadicalVerticalGap = 0 +mathfont.save(f)