-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile.in
420 lines (361 loc) · 17.3 KB
/
Makefile.in
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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
COMPRESS=@PYTHON@ ../compress-font.py
# Build all the open source fonts
all: Asana DejaVu FiraMath Garamond GFS_NeoHellenic LatinModern Libertinus STIX TeXGyreBonum TeXGyrePagella TeXGyreSchola TeXGyreTermes XITS
# Make all the commands for font generations PHONY as they are very fast.
# The download operations are slower and will only be performed once.
# FIXME: This is no longer true with woff2 compression.
# See https://github.com/fred-wang/MathFonts/issues/5
.PHONY: clean distclean Asana DejaVu FiraMath Garamond GFS_NeoHellenic LatinModern Libertinus NeoEuler STIX TeXGyreBonum TeXGyrePagella TeXGyreSchola TeXGyreTermes XITS
# Asana
ASANA_URL="http://mirrors.ctan.org/fonts/Asana-Math.zip"
OFL_LICENSE_URL="http://scripts.sil.org/cms/scripts/render_download.php?format=file&media_id=OFL_plaintext&filename=OFL.txt"
OFL_FAQ_URL="http://scripts.sil.org/cms/scripts/render_download.php?format=file&media_id=OFL-FAQ_plaintext&filename=OFL-FAQ.txt"
Asana/Asana-Math:
# Get the package from CTAN and add the OFL text documents.
cd Asana; @WGET@ $(ASANA_URL); @UNZIP@ Asana-Math.zip; \
cd Asana-Math; @WGET@ $(OFL_FAQ_URL) -O OFL-FAQ.txt; \
@WGET@ $(OFL_LICENSE_URL) -O OFL.txt;
Asana: Asana/Asana-Math
# Keep only the otf files and doc and convert into WOFF.
cp $</* $@; cd $@; rm *.TTC; \
$(COMPRESS) Asana-Math.otf; rm *.otf;
# The Asana package on CTAN does not contain any OFL license, so we
# complete the copyright information here.
cp $</OFL-FAQ.txt $@;
cp $</OFL.txt $@;
cd $@; \
cat OFL.txt | @GREP@ -v "additional Copyright Holder>" | \
@GREP@ -v "<additional Reserved Font Name>" \
> OFL-tmp.txt; mv OFL-tmp.txt OFL.txt; \
@SED@ -i "s/<dates>/2007\-2015/" OFL.txt; \
@SED@ -i "s/<Copyright Holder>/Apostolos Syropoulos/" OFL.txt; \
@SED@ -i "s/ (<URL|email>)//" OFL.txt; \
@SED@ -i "s/<Reserved Font Name>/Asana Math/" OFL.txt;
# Generate CheckFont logs
@PYTHON@ CheckFont.py $@/Asana-Math.woff \
> $@/CheckFontLog.txt 2> $@/CheckFontError.txt
# Generate the testcase
@PYTHON@ GenerateHTMLTest.py $@ Asana-Math.woff
# DejaVu
DEJAVU_VERSION=2.36
DEJAVU_URL=http://sourceforge.net/projects/dejavu/files/dejavu/$(DEJAVU_VERSION)/dejavu-fonts-ttf-$(DEJAVU_VERSION).zip
DejaVu/dejavu-fonts-ttf:
# Get the package
cd DejaVu; @WGET@ $(DEJAVU_URL); \
@UNZIP@ dejavu-fonts-ttf-$(DEJAVU_VERSION).zip; \
mv dejavu-fonts-ttf-$(DEJAVU_VERSION) dejavu-fonts-ttf
DejaVu: DejaVu/dejavu-fonts-ttf
# Copy the fonts and doc and convert into WOFF
cp $</AUTHORS $</LICENSE $</README.md $</NEWS $@
cp $</ttf/DejaVuSerif.ttf \
$</ttf/DejaVuSerif-Bold.ttf \
$</ttf/DejaVuSerif-Italic.ttf \
$</ttf/DejaVuSerif-BoldItalic.ttf \
$</ttf/DejaVuMathTeXGyre.ttf $@
cd $@; \
for f in `ls *.ttf`; do $(COMPRESS) $$f; done; rm *.ttf
# Generate CheckFont logs
@PYTHON@ CheckFont.py $@/DejaVuMathTeXGyre.woff \
> $@/CheckFontLog.txt 2> $@/CheckFontError.txt
# Generate the testcase
@PYTHON@ GenerateHTMLTest.py $@ DejaVuMathTeXGyre.woff
# Fira Math
FIRAMATH_VERSION=0.3.4
FIRAMATH_URL=https://github.com/firamath/firamath/releases/download/v$(FIRAMATH_VERSION)/FiraMath-Regular.otf
FIRAMATH_GITHUB=https://raw.githubusercontent.com/firamath/firamath/main/
FiraMath/firamath:
# Get the package
mkdir -p $@; cd $@; \
@WGET@ $(FIRAMATH_GITHUB)/LICENSE; \
@WGET@ $(FIRAMATH_GITHUB)/README.md; \
@WGET@ $(FIRAMATH_URL)
FiraMath: FiraMath/firamath
# Copy the fonts and doc and convert into WOFF
cp $</LICENSE $/README.md $</*.otf $@
cd $@; \
for f in `ls *.otf`; do $(COMPRESS) $$f; done; rm *.otf
# Generate CheckFont logs
@PYTHON@ CheckFont.py $@/FiraMath-Regular.woff \
> $@/CheckFontLog.txt 2> $@/CheckFontError.txt
# Generate the testcase
@PYTHON@ GenerateHTMLTest.py $@ FiraMath-Regular.woff
# Garamond
GARAMOND_URL=https://bitbucket.org/georgd/eb-garamond/downloads/EBGaramond-0.016.zip
GARAMONDMATH_URL=https://raw.githubusercontent.com/YuanshengZhao/Garamond-Math/master/
Garamond/garamond:
# Get the Garamond font
mkdir -p $@; \
cd Garamond; @WGET@ $(GARAMOND_URL) -O garamond.zip; \
@UNZIP@ -j garamond.zip -d garamond;
# Get the Garamond Math font
cd $@; @WGET@ $(GARAMONDMATH_URL)/Garamond-Math.otf; \
@WGET@ $(GARAMONDMATH_URL)/LICENSE $(GARAMONDMATH_URL)/README.md;
Garamond: Garamond/garamond
# Copy the fonts and doc and convert into WOFF
cp $</LICENSE $</README.md $@
cp $</EBGaramond12-Regular.otf \
$</EBGaramond12-Italic.otf \
$</Garamond-Math.otf $@
cd $@; \
for f in `ls *.otf`; do $(COMPRESS) $$f; done; rm *.otf
# Generate CheckFont logs
@PYTHON@ CheckFont.py $@/Garamond-Math.woff \
> $@/CheckFontLog.txt 2> $@/CheckFontError.txt
# Generate the testcase
@PYTHON@ GenerateHTMLTest.py $@ Garamond-Math.woff
# GFS Neohellenic Math
GFS_NEOHELLENIC_URL=https://greekfontsociety-gfs.gr/_assets/fonts/GFS_NeoHellenic.zip
GFS_NEOHELLENICMATH_URL=https://greekfontsociety-gfs.gr/_assets/fonts/GFS_NeoHellenic_Math.zip
GFS_NeoHellenic/gfs_neohellenic:
# Get the GFS NeoHellenic font
cd GFS_NeoHellenic; @WGET@ $(GFS_NEOHELLENIC_URL); \
mkdir gfs_neohellenic; \
@UNZIP@ -j GFS_NeoHellenic.zip -d gfs_neohellenic;
# Get the GFS NeoHellenic Math font
cd GFS_NeoHellenic; @WGET@ $(GFS_NEOHELLENICMATH_URL); \
@UNZIP@ -j GFS_NeoHellenic_Math.zip -d gfs_neohellenic;
GFS_NeoHellenic: GFS_NeoHellenic/gfs_neohellenic
cp $</OFL-FAQ.txt $</OFL.txt $@
cp $</README $@
cp $</GFSNeohellenicBoldIt.otf \
$</GFSNeohellenicBold.otf \
$</GFSNeohellenicIt.otf \
$</GFSNeohellenic.otf \
$</GFSNeohellenicMath.otf $@
cd $@; \
for f in `ls *.otf`; do $(COMPRESS) $$f; done; rm *.otf
# Generate CheckFont logs
@PYTHON@ CheckFont.py $@/GFSNeohellenicMath.woff \
> $@/CheckFontLog.txt 2> $@/CheckFontError.txt
# Generate the testcase
@PYTHON@ GenerateHTMLTest.py $@ GFSNeohellenicMath.woff
# Latin Modern
LATINMODERN_URL="http://www.gust.org.pl/projects/e-foundry/latin-modern/download/lm2.004otf.zip"
LATINMODERN_HISTORY_URL="http://www.gust.org.pl/projects/e-foundry/latin-modern/download/lm-hist.txt/at_download/file"
LATINMODERN_MANIFEST_URL="http://www.gust.org.pl/projects/e-foundry/latin-modern/download/manifest-latin-modern.txt/at_download/file"
LATINMODERN_README_URL="http://www.gust.org.pl/projects/e-foundry/latin-modern/download/readme-latin-modern.txt/at_download/file"
LATINMODERNMATH_URL="http://www.gust.org.pl/projects/e-foundry/lm-math/download/latinmodern-math-1959.zip"
LatinModern/latinmodern:
# Get the Latin Modern from GUST
cd LatinModern; @WGET@ $(LATINMODERN_URL); \
mkdir latinmodern; @UNZIP@ lm*otf.zip -d latinmodern;
@WGET@ $(LATINMODERN_HISTORY_URL) -O $@/lm-hist.txt
@WGET@ $(LATINMODERN_MANIFEST_URL) -O $@/MANIFEST-Latin-Modern.TXT
@WGET@ $(LATINMODERN_README_URL) -O $@/README-Latin-Modern.TXT
# Get the Latin Modern Math from GUST
cd LatinModern; @WGET@ $(LATINMODERNMATH_URL); \
@UNZIP@ -j latinmodern-math-*.zip -d latinmodern;
LatinModern: LatinModern/latinmodern
# Copy the fonts and doc and convert into WOFF
cp $</*.txt $</*.TXT $@
cp $</lmroman12*.otf $@
cp $</latinmodern-math.otf $@
cd $@; \
for f in `ls *.otf`; do $(COMPRESS) $$f; done; rm *.otf
# Generate CheckFont logs
@PYTHON@ CheckFont.py $@/latinmodern-math.woff \
> $@/CheckFontLog.txt 2> $@/CheckFontError.txt
# Generate the testcase
@PYTHON@ GenerateHTMLTest.py $@ latinmodern-math.woff
# Libertinus
LIBERTINUS_URL=https://github.com/khaledhosny/libertinus/releases/download/v6.2/libertinus-6.2.zip
LIBERTINUS_FONTS=libertinusmath-regular.otf libertinusserif-regular.otf \
libertinusserif-bold.otf libertinusserif-italic.otf \
libertinusserif-bolditalic.otf
Libertinus/libertinus:
# Get the Libertinus fonts from GitHub.
cd Libertinus; \
@WGET@ $(LIBERTINUS_URL); @UNZIP@ libertinus*.zip -d libertinus;
Libertinus: Libertinus/libertinus
cp $</*/*.txt $</*/*.otf $@
cd $@; \
for f in $(LIBERTINUS_FONTS) ; do $(COMPRESS) $$f; done; rm *.otf
# Generate CheckFont logs
@PYTHON@ CheckFont.py $@/libertinusmath-regular.woff \
> $@/CheckFontLog.txt 2> $@/CheckFontError.txt
# Generate the testcase
@PYTHON@ GenerateHTMLTest.py $@ libertinusmath-regular.woff
# Neo Euler
NEO_EULER_URL="https://github.com/khaledhosny/euler-otf/archive/master.zip"
NeoEuler/euler-otf-master:
# Get the package from GitHub
cd NeoEuler; @WGET@ $(NEO_EULER_URL); @UNZIP@ master.zip;
NeoEuler: NeoEuler/euler-otf-master
# Copy the fonts and doc and convert into WOFF
cp $</README $</OFL*.txt $</*.otf $@
cd $@; $(COMPRESS) euler.otf; rm *.otf
# Generate CheckFont logs
@PYTHON@ CheckFont.py $@/euler.woff \
> $@/CheckFontLog.txt 2> $@/CheckFontError.txt
# Generate the testcase
@PYTHON@ GenerateHTMLTest.py $@ euler.woff
# TeXGyreBonum
TEXGYREBONUM_URL="http://www.gust.org.pl/projects/e-foundry/tex-gyre/bonum/qbk2.004otf.zip"
TEXGYREBONUM_HISTORY_URL="http://www.gust.org.pl/projects/e-foundry/tex-gyre/bonum/qbk-hist.txt/at_download/file"
TEXGYREBONUM_MANIFEST_URL="http://www.gust.org.pl/projects/e-foundry/tex-gyre/bonum/manifest-tex-gyre-bonum.txt/at_download/file"
TEXGYREBONUM_README_URL="http://www.gust.org.pl/projects/e-foundry/tex-gyre/bonum/readme-tex-gyre-bonum.txt/at_download/file"
TEXGYREBONUMMATH_URL="http://www.gust.org.pl/projects/e-foundry/tg-math/download/texgyrebonum-math-1005.zip"
TeXGyreBonum/texgyrebonum:
# Get the TeX Gyre Bonum from GUST
cd TeXGyreBonum; @WGET@ $(TEXGYREBONUM_URL); \
mkdir texgyrebonum; @UNZIP@ qbk*otf.zip -d texgyrebonum;
@WGET@ $(TEXGYREBONUM_HISTORY_URL) -O $@/qbk-hist.txt
@WGET@ $(TEXGYREBONUM_MANIFEST_URL) -O $@/MANIFEST-TeX-Gyre-Bonum.TXT
@WGET@ $(TEXGYREBONUM_README_URL) -O $@/README-TeX-Gyre-Bonum.TXT
# Get the TeX Gyre Bonum Math from GUST
cd TeXGyreBonum; @WGET@ $(TEXGYREBONUMMATH_URL); \
@UNZIP@ -j texgyrebonum-math-*.zip -d texgyrebonum;
TeXGyreBonum: TeXGyreBonum/texgyrebonum
# Copy the fonts and doc and convert into WOFF
cp $</*.txt $</*.TXT $</*.otf $@
cd $@; \
for f in `ls *.otf`; do $(COMPRESS) $$f; done; rm *.otf
# Generate CheckFont logs
@PYTHON@ CheckFont.py $@/texgyrebonum-math.woff \
> $@/CheckFontLog.txt 2> $@/CheckFontError.txt
# Generate the testcase
@PYTHON@ GenerateHTMLTest.py $@ texgyrebonum-math.woff
# TeXGyrePagella
TEXGYREPAGELLA_URL="https://www.gust.org.pl/projects/e-foundry/tex-gyre/pagella/qpl2_501otf.zip"
TEXGYREPAGELLA_HISTORY_URL="http://www.gust.org.pl/projects/e-foundry/tex-gyre/pagella/qpl-hist.txt/at_download/file"
TEXGYREPAGELLA_MANIFEST_URL="https://www.gust.org.pl/projects/e-foundry/tex-gyre/pagella/MANIFEST-TeX-Gyre-Pagella.txt/at_download/file"
TEXGYREPAGELLA_README_URL="https://www.gust.org.pl/projects/e-foundry/tex-gyre/pagella/README-TeX-Gyre-Pagella.txt/at_download/file"
TEXGYREPAGELLAMATH_URL="https://www.gust.org.pl/projects/e-foundry/tg-math/download/texgyrepagella-math-1632.zip"
TeXGyrePagella/texgyrepagella:
# Get the TeX Gyre Pagella from GUST
cd TeXGyrePagella; @WGET@ $(TEXGYREPAGELLA_URL); \
mkdir texgyrepagella; @UNZIP@ qpl*otf.zip -d texgyrepagella;
@WGET@ $(TEXGYREPAGELLA_HISTORY_URL) -O $@/qpl-hist.txt
@WGET@ $(TEXGYREPAGELLA_MANIFEST_URL) -O $@/MANIFEST-TeX-Gyre-Pagella.TXT
@WGET@ $(TEXGYREPAGELLA_README_URL) -O $@/README-TeX-Gyre-Pagella.TXT
# Get the TeX Gyre Pagella Math from GUST
cd TeXGyrePagella; @WGET@ $(TEXGYREPAGELLAMATH_URL); \
@UNZIP@ -j texgyrepagella-math-*.zip -d texgyrepagella;
TeXGyrePagella: TeXGyrePagella/texgyrepagella
# Copy the fonts and doc and convert into WOFF
cp $</*.txt $</*.TXT $</*.otf $@
cd $@; \
for f in `ls *.otf`; do $(COMPRESS) $$f; done; rm *.otf
# Generate CheckFont logs
@PYTHON@ CheckFont.py $@/texgyrepagella-math.woff \
> $@/CheckFontLog.txt 2> $@/CheckFontError.txt
# Generate the testcase
@PYTHON@ GenerateHTMLTest.py $@ texgyrepagella-math.woff
# TeXGyreSchola
TEXGYRESCHOLA_URL="http://www.gust.org.pl/projects/e-foundry/tex-gyre/schola/qcs2.005otf.zip"
TEXGYRESCHOLA_HISTORY_URL="http://www.gust.org.pl/projects/e-foundry/tex-gyre/schola/qcs-hist.txt/at_download/file"
TEXGYRESCHOLA_MANIFEST_URL="http://www.gust.org.pl/projects/e-foundry/tex-gyre/schola/manifest-tex-gyre-schola.txt/at_download/file"
TEXGYRESCHOLA_README_URL="http://www.gust.org.pl/projects/e-foundry/tex-gyre/schola/readme-tex-gyre-schola.txt/at_download/file"
TEXGYRESCHOLAMATH_URL="http://www.gust.org.pl/projects/e-foundry/tg-math/download/texgyreschola-math-1533.zip"
TeXGyreSchola/texgyreschola:
# Get the TeX Gyre Schola from GUST
cd TeXGyreSchola; @WGET@ $(TEXGYRESCHOLA_URL); \
mkdir texgyreschola; @UNZIP@ qcs*otf.zip -d texgyreschola;
@WGET@ $(TEXGYRESCHOLA_HISTORY_URL) -O $@/qcs-hist.txt
@WGET@ $(TEXGYRESCHOLA_MANIFEST_URL) -O $@/MANIFEST-TeX-Gyre-Schola.TXT
@WGET@ $(TEXGYRESCHOLA_README_URL) -O $@/README-TeX-Gyre-Schola.TXT
# Get the TeX Gyre Schola Math from GUST
cd TeXGyreSchola; @WGET@ $(TEXGYRESCHOLAMATH_URL); \
@UNZIP@ -j texgyreschola-math-*.zip -d texgyreschola;
TeXGyreSchola: TeXGyreSchola/texgyreschola
# Copy the fonts and doc and convert into WOFF
cp $</*.txt $</*.TXT $</*.otf $@
cd $@; \
for f in `ls *.otf`; do $(COMPRESS) $$f; done; rm *.otf
# Generate CheckFont logs
@PYTHON@ CheckFont.py $@/texgyreschola-math.woff \
> $@/CheckFontLog.txt 2> $@/CheckFontError.txt
# Generate the testcase
@PYTHON@ GenerateHTMLTest.py $@ texgyreschola-math.woff
# TeXGyreTermes
TEXGYRETERMES_URL="http://www.gust.org.pl/projects/e-foundry/tex-gyre/termes/qtm2.004otf.zip"
TEXGYRETERMES_HISTORY_URL="http://www.gust.org.pl/projects/e-foundry/tex-gyre/termes/qtm-hist.txt/at_download/file"
TEXGYRETERMES_MANIFEST_URL="http://www.gust.org.pl/projects/e-foundry/tex-gyre/termes/manifest-tex-gyre-termes.txt/at_download/file"
TEXGYRETERMES_README_URL="http://www.gust.org.pl/projects/e-foundry/tex-gyre/termes/readme-tex-gyre-termes.txt/at_download/file"
TEXGYRETERMESMATH_URL="http://www.gust.org.pl/projects/e-foundry/tg-math/download/texgyretermes-math-1543.zip"
TeXGyreTermes/texgyretermes:
# Get the TeX Gyre Termes from GUST
cd TeXGyreTermes; @WGET@ $(TEXGYRETERMES_URL); \
mkdir texgyretermes; @UNZIP@ qtm*otf.zip -d texgyretermes;
@WGET@ $(TEXGYRETERMES_HISTORY_URL) -O $@/qtm-hist.txt
@WGET@ $(TEXGYRETERMES_MANIFEST_URL) -O $@/MANIFEST-TeX-Gyre-Termes.TXT
@WGET@ $(TEXGYRETERMES_README_URL) -O $@/README-TeX-Gyre-Termes.TXT
# Get the TeX Gyre Termes Math from GUST
cd TeXGyreTermes; @WGET@ $(TEXGYRETERMESMATH_URL); \
@UNZIP@ -j texgyretermes-math-*.zip -d texgyretermes;
TeXGyreTermes: TeXGyreTermes/texgyretermes
# Copy the fonts and doc and convert into WOFF
cp $</*.txt $</*.TXT $</*.otf $@
cd $@; \
for f in `ls *.otf`; do $(COMPRESS) $$f; done; rm *.otf
# Generate CheckFont logs
@PYTHON@ CheckFont.py $@/texgyretermes-math.woff \
> $@/CheckFontLog.txt 2> $@/CheckFontError.txt
# Generate the testcase
@PYTHON@ GenerateHTMLTest.py $@ texgyretermes-math.woff
# STIX
STIX_URL="https://github.com/stipub/stixfonts/blob/master/zipfiles/STIX2_13-all.zip?raw=true"
STIX/stix:
# Get the package from fontforge
cd STIX; @WGET@ $(STIX_URL) -O STIX.zip;
mkdir $@; @UNZIP@ -j STIX/STIX.zip -d $@;
STIX: STIX/stix
# Copy the fonts
# TODO: copy license.
cp $</STIXTwoText-Regular.otf $</STIXTwoText-Bold.otf $</STIXTwoText-Italic.otf $</STIXTwoText-BoldItalic.otf $</STIXTwoMath-Regular.otf $@
# TODO: don't bother compressing woff2, just keep upstream version.
cd $@; \
for f in `ls *.otf`; do $(COMPRESS) $$f; done; rm *.otf *.woff2
cp $</STIXTwoText-Regular.woff2 $</STIXTwoText-Bold.woff2 $</STIXTwoText-Italic.woff2 $</STIXTwoText-BoldItalic.woff2 $</STIXTwoMath-Regular.woff2 $@
# Generate CheckFont logs
@PYTHON@ CheckFont.py $@/STIXTwoMath-Regular.woff \
> $@/CheckFontLog.txt 2> $@/CheckFontError.txt
# Generate the testcase
@PYTHON@ GenerateHTMLTest.py $@ STIXTwoMath-Regular.woff
# XITS
XITS_URL="http://mirrors.ctan.org/fonts/xits.zip"
XITS/xits:
# Get the package from CTAN
cd XITS; @WGET@ $(XITS_URL); @UNZIP@ xits.zip;
XITS: XITS/xits
# Copy the fonts and doc and convert them into WOFF
cp $</FONTLOG.txt $</OFL*.txt $</README.txt $</*.otf $@;
cd $@; \
for f in `ls *.otf`; do $(COMPRESS) $$f; done; rm *.otf
# Generate CheckFont logs
@PYTHON@ CheckFont.py $@/XITSMath-Regular.woff \
> $@/CheckFontLog.txt 2> $@/CheckFontError.txt
# Generate the testcase
@PYTHON@ GenerateHTMLTest.py $@ XITSMath-Regular.woff
webextension-mathml-fonts.zip: LatinModern/latinmodern-math.woff2 \
LatinModern/GUST-FONT-LICENSE.txt \
LatinModern/MANIFEST-Latin-Modern-Math.txt \
STIX/STIX_2.0.0_license.pdf STIX/STIX2Math.woff2
# Package the Web Extension.
mkdir -p webextension/fonts/LatinModern webextension/fonts/STIX
for f in $^; do cp $$f webextension/fonts/$$f; done
cd webextension; @ZIP@ -r ../$@ *
extension: webextension-mathml-fonts.zip
# Clean up
clean:
rm -rf Asana/*.zip Asana/Asana-Math;
rm -rf DejaVu/*.zip DejaVu/dejavu-fonts-ttf;
rm -rf FiraMath/firamath;
rm -rf Garamond/garamond;
rm -rf GFS_NeoHellenic/gfs_neohellenic;
rm -rf LatinModern/*.zip LatinModern/latinmodern;
rm -rf Libertinus/*.zip Libertinus/libertinus;
rm -rf NeoEuler/*.zip NeoEuler/euler-otf-master;
rm -rf STIX/*.zip STIX/stix;
rm -rf TeXGyre*/*.zip TeXGyre*/texgyre*;
rm -rf XITS/*.zip XITS/xits;
rm -rf webextension/fonts webextension-mathml-fonts.zip
distclean: clean
rm -rf autom4te.cache config.log config.status Makefile;
TOREMOVE=`ls */* | grep -v mathfonts.css | grep -v webextension | grep -v mozilla_mathml_test`; \
if [ -n "$$TOREMOVE" ]; then \
rm -rf $$TOREMOVE; \
fi;