mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Update web-platform-tests to revision e8bfc205e36ad699601212cd50083870bad9a75d
This commit is contained in:
parent
65dd6d4340
commit
ccdb0a3458
1428 changed files with 118036 additions and 9786 deletions
11
tests/wpt/web-platform-tests/mathml/tools/xHeight.py
Normal file
11
tests/wpt/web-platform-tests/mathml/tools/xHeight.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/python
|
||||
|
||||
from utils import mathfont
|
||||
import fontforge
|
||||
|
||||
v = mathfont.em / 2
|
||||
f = mathfont.create("xheight%d" % v)
|
||||
g = f.createChar(ord('x'))
|
||||
mathfont.drawRectangleGlyph(g, mathfont.em, v, 0)
|
||||
assert f.xHeight == v, "Bad x-height value!"
|
||||
mathfont.save(f)
|
Loading…
Add table
Add a link
Reference in a new issue