diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:43:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:43:14 +0000 |
commit | 8dd16259287f58f9273002717ec4d27e97127719 (patch) | |
tree | 3863e62a53829a84037444beab3abd4ed9dfc7d0 /testing/web-platform/tests/mathml/tools | |
parent | Releasing progress-linux version 126.0.1-1~progress7.99u1. (diff) | |
download | firefox-8dd16259287f58f9273002717ec4d27e97127719.tar.xz firefox-8dd16259287f58f9273002717ec4d27e97127719.zip |
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/mathml/tools')
-rwxr-xr-x | testing/web-platform/tests/mathml/tools/stretchy.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/testing/web-platform/tests/mathml/tools/stretchy.py b/testing/web-platform/tests/mathml/tools/stretchy.py index 34530f5792..33d4decd4f 100755 --- a/testing/web-platform/tests/mathml/tools/stretchy.py +++ b/testing/web-platform/tests/mathml/tools/stretchy.py @@ -4,7 +4,9 @@ from utils import mathfont import fontforge # Create a WOFF font with glyphs for all the operator strings. -font = mathfont.create("stretchy", "Copyright (c) 2021 Igalia S.L.") +font = mathfont.create("stretchy", "Copyright (c) 2021-2024 Igalia S.L.") + +font.math.AxisHeight = 0 # Set parameters for stretchy tests. font.math.MinConnectorOverlap = mathfont.em // 2 @@ -27,6 +29,7 @@ font.math.OverbarExtraAscender = 0 # These two characters will be stretchable in both directions. horizontalArrow = 0x295A # LEFTWARDS HARPOON WITH BARB UP FROM BAR verticalArrow = 0x295C # UPWARDS HARPOON WITH BARB RIGHT FROM BAR +upDownArrowWithBase = 0x21A8 # UP DOWN ARROW WITH BASE mathfont.createSizeVariants(font, aUsePUA=True, aCenterOnBaseline=False) @@ -40,4 +43,10 @@ mathfont.createSquareGlyph(font, verticalArrow) mathfont.createStretchy(font, verticalArrow, True) mathfont.createStretchy(font, verticalArrow, False) +# U+21A8 stretches vertically using two size variants: a base glyph (of height +# half an em) and taller glyphs (of heights 1, 2, 3 and 4 em). +g = font.createChar(upDownArrowWithBase) +mathfont.drawRectangleGlyph(g, mathfont.em, mathfont.em/2, 0) +font[upDownArrowWithBase].verticalVariants = "uni21A8 v0 v1 v2 v3" + mathfont.save(font) |