blob: 2103a73a114d2e96f842298e6c5701c58976ea4a [file] [log] [blame]
#!/usr/bin/python
from utils import mathfont
import fontforge
v = mathfont.em / 2
f = mathfont.create("xheight%d" % v,
"Copyright (c) 2016 MathML Association")
g = f.createChar(ord('x'))
mathfont.drawRectangleGlyph(g, mathfont.em, v, 0)
assert f.xHeight == v, "Bad x-height value!"
mathfont.save(f)