blob: ad0f8b9e02c20175bb2f2395053036b5f8d2bc82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/usr/bin/env python3
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)
|