1
0
Fork 0
firefox/testing/web-platform/tests/mathml/tools/percentscaledown.py
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

24 lines
782 B
Python
Executable file

#!/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)