mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
21 lines
615 B
Python
21 lines
615 B
Python
#!/usr/bin/python
|
|
|
|
from utils import mathfont
|
|
import fontforge
|
|
|
|
v1 = 80
|
|
v2 = 40
|
|
f = mathfont.create("scriptpercentscaledown%d-scriptscriptpercentscaledown%d" % (v1, v2))
|
|
f.math.ScriptPercentScaleDown = v1
|
|
f.math.ScriptScriptPercentScaleDown = v2
|
|
mathfont.save(f)
|
|
|
|
f = mathfont.create("scriptpercentscaledown0-scriptscriptpercentscaledown%d" % v2)
|
|
f.math.ScriptPercentScaleDown = 0
|
|
f.math.ScriptScriptPercentScaleDown = v2
|
|
mathfont.save(f)
|
|
|
|
f = mathfont.create("scriptpercentscaledown%d-scriptscriptpercentscaledown0" % v1)
|
|
f.math.ScriptPercentScaleDown = v1
|
|
f.math.ScriptScriptPercentScaleDown = 0
|
|
mathfont.save(f)
|