blob: e1da482a003bc36ad2e0f9648d61cfcb713571bb (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
|
#!/usr/bin/env python3
from utils import mathfont
import fontforge
v = 3 * mathfont.em
f = mathfont.create("scripts-spaceafterscript%d" % v,
"Copyright (c) 2016 MathML Association")
f.math.SpaceAfterScript = v
f.math.SubSuperscriptGapMin = 0
f.math.SubscriptBaselineDropMin = 0
f.math.SubscriptShiftDown = 0
f.math.SubscriptTopMax = 0
f.math.SuperscriptBaselineDropMax = 0
f.math.SuperscriptBottomMaxWithSubscript = 0
f.math.SuperscriptBottomMin = 0
f.math.SuperscriptShiftUp = 0
f.math.SuperscriptShiftUpCramped = 0
mathfont.save(f)
v = 7 * mathfont.em
f = mathfont.create("scripts-superscriptshiftup%d" % v,
"Copyright (c) 2016 MathML Association")
f.math.SpaceAfterScript = 0
f.math.SubSuperscriptGapMin = 0
f.math.SubscriptBaselineDropMin = 0
f.math.SubscriptShiftDown = 0
f.math.SubscriptTopMax = 0
f.math.SuperscriptBaselineDropMax = 0
f.math.SuperscriptBottomMaxWithSubscript = 0
f.math.SuperscriptBottomMin = 0
f.math.SuperscriptShiftUp = v
f.math.SuperscriptShiftUpCramped = 0
mathfont.save(f)
v = 5 * mathfont.em
f = mathfont.create("scripts-superscriptshiftupcramped%d" % v,
"Copyright (c) 2016 MathML Association")
f.math.SpaceAfterScript = 0
f.math.SubSuperscriptGapMin = 0
f.math.SubscriptBaselineDropMin = 0
f.math.SubscriptShiftDown = 0
f.math.SubscriptTopMax = 0
f.math.SuperscriptBaselineDropMax = 0
f.math.SuperscriptBottomMaxWithSubscript = 0
f.math.SuperscriptBottomMin = 0
f.math.SuperscriptShiftUp = 0
f.math.SuperscriptShiftUpCramped = v
mathfont.save(f)
v = 6 * mathfont.em
f = mathfont.create("scripts-subscriptshiftdown%d" % v,
"Copyright (c) 2016 MathML Association")
f.math.SpaceAfterScript = 0
f.math.SubSuperscriptGapMin = 0
f.math.SubscriptBaselineDropMin = 0
f.math.SubscriptShiftDown = v
f.math.SubscriptTopMax = 0
f.math.SuperscriptBaselineDropMax = 0
f.math.SuperscriptBottomMaxWithSubscript = 0
f.math.SuperscriptBottomMin = 0
f.math.SuperscriptShiftUp = 0
f.math.SuperscriptShiftUpCramped = 0
mathfont.save(f)
v = 11 * mathfont.em
f = mathfont.create("scripts-subsuperscriptgapmin%d" % v,
"Copyright (c) 2016 MathML Association")
f.math.SpaceAfterScript = 0
f.math.SubSuperscriptGapMin = v
f.math.SubscriptBaselineDropMin = 0
f.math.SubscriptShiftDown = 0
f.math.SubscriptTopMax = 0
f.math.SuperscriptBaselineDropMax = 0
f.math.SuperscriptBottomMaxWithSubscript = 0
f.math.SuperscriptBottomMin = 0
f.math.SuperscriptShiftUp = 0
f.math.SuperscriptShiftUpCramped = 0
mathfont.save(f)
v1 = 11 * mathfont.em
v2 = 3 * mathfont.em
f = mathfont.create("scripts-subsuperscriptgapmin%d-superscriptbottommaxwithsubscript%d" % (v1, v2),
"Copyright (c) 2016 MathML Association")
f.math.SpaceAfterScript = 0
f.math.SubSuperscriptGapMin = v1
f.math.SubscriptBaselineDropMin = 0
f.math.SubscriptShiftDown = 0
f.math.SubscriptTopMax = 0
f.math.SuperscriptBaselineDropMax = 0
f.math.SuperscriptBottomMaxWithSubscript = v2
f.math.SuperscriptBottomMin = 0
f.math.SuperscriptShiftUp = 0
f.math.SuperscriptShiftUpCramped = 0
mathfont.save(f)
v = 4 * mathfont.em
f = mathfont.create("scripts-subscripttopmax%d" % v,
"Copyright (c) 2016 MathML Association")
f.math.SpaceAfterScript = 0
f.math.SubSuperscriptGapMin = 0
f.math.SubscriptBaselineDropMin = 0
f.math.SubscriptShiftDown = 0
f.math.SubscriptTopMax = v
f.math.SuperscriptBaselineDropMax = 0
f.math.SuperscriptBottomMaxWithSubscript = 0
f.math.SuperscriptBottomMin = 0
f.math.SuperscriptShiftUp = 0
f.math.SuperscriptShiftUpCramped = 0
mathfont.save(f)
v = 8 * mathfont.em
f = mathfont.create("scripts-superscriptbottommin%d" % v,
"Copyright (c) 2016 MathML Association")
f.math.SpaceAfterScript = 0
f.math.SubSuperscriptGapMin = 0
f.math.SubscriptBaselineDropMin = 0
f.math.SubscriptShiftDown = 0
f.math.SubscriptTopMax = 0
f.math.SuperscriptBaselineDropMax = 0
f.math.SuperscriptBottomMaxWithSubscript = 0
f.math.SuperscriptBottomMin = v
f.math.SuperscriptShiftUp = 0
f.math.SuperscriptShiftUpCramped = 0
mathfont.save(f)
v = 9 * mathfont.em
f = mathfont.create("scripts-subscriptbaselinedropmin%d" % v,
"Copyright (c) 2016 MathML Association")
f.math.SpaceAfterScript = 0
f.math.SubSuperscriptGapMin = 0
f.math.SubscriptBaselineDropMin = v
f.math.SubscriptShiftDown = 0
f.math.SubscriptTopMax = 0
f.math.SuperscriptBaselineDropMax = 0
f.math.SuperscriptBottomMaxWithSubscript = 0
f.math.SuperscriptBottomMin = 0
f.math.SuperscriptShiftUp = 0
f.math.SuperscriptShiftUpCramped = 0
mathfont.save(f)
v = 10 * mathfont.em
f = mathfont.create("scripts-superscriptbaselinedropmax%d" % v,
"Copyright (c) 2016 MathML Association")
f.math.SpaceAfterScript = 0
f.math.SubSuperscriptGapMin = 0
f.math.SubscriptBaselineDropMin = 0
f.math.SubscriptShiftDown = 0
f.math.SubscriptTopMax = 0
f.math.SuperscriptBaselineDropMax = v
f.math.SuperscriptBottomMaxWithSubscript = 0
f.math.SuperscriptBottomMin = 0
f.math.SuperscriptShiftUp = 0
f.math.SuperscriptShiftUpCramped = 0
mathfont.save(f)
|