Import MathML WPT tests
[WebKit-https.git] / LayoutTests / imported / w3c / web-platform-tests / mathml / tools / largeop.py
1 #!/usr/bin/python
2
3 from utils import mathfont
4 import fontforge
5
6 nAryWhiteVerticalBarCodePoint = 0x2AFF
7 v1 = 5 * mathfont.em
8 f = mathfont.create("largeop-displayoperatorminheight%d" % v1)
9 f.math.DisplayOperatorMinHeight = v1
10 mathfont.createSquareGlyph(f, nAryWhiteVerticalBarCodePoint)
11 g = f.createChar(-1, "uni2AFF.display")
12 mathfont.drawRectangleGlyph(g, mathfont.em, v1, 0)
13 f[nAryWhiteVerticalBarCodePoint].verticalVariants = "uni2AFF uni2AFF.display"
14 mathfont.save(f)