summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/mathml/tools/percentscaledown.py
blob: ef40d1fd879f87dd0d16d0eed602d70e50fbe3a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env python3

from utils import mathfont
import fontforge

v1 = 80
v2 = 40
f = mathfont.create("scriptpercentscaledown%d-scriptscriptpercentscaledown%d" % (v1, v2),
                    "Copyright (c) 2019 Igalia S.L.")
f.math.ScriptPercentScaleDown = v1
f.math.ScriptScriptPercentScaleDown = v2
mathfont.save(f)

f = mathfont.create("scriptpercentscaledown0-scriptscriptpercentscaledown%d" % v2,
                    "Copyright (c) 2019 Igalia S.L.")
f.math.ScriptPercentScaleDown = 0
f.math.ScriptScriptPercentScaleDown = v2
mathfont.save(f)

f = mathfont.create("scriptpercentscaledown%d-scriptscriptpercentscaledown0" % v1,
                    "Copyright (c) 2019 Igalia S.L.")
f.math.ScriptPercentScaleDown = v1
f.math.ScriptScriptPercentScaleDown = 0
mathfont.save(f)