-
Notifications
You must be signed in to change notification settings - Fork 31
/
Makefile
64 lines (57 loc) · 3.03 KB
/
Makefile
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
DEJAVU=/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf
UBUNTU=/usr/share/fonts/truetype/ubuntu-font-family/UbuntuMono-R.ttf
CONSOLAS=/home/clement/.fonts/Microsoft/Consolas-Fixed.ttf
INCONSOLATA=/home/clement/.fonts/monospace/Inconsolata.otf
INCONSOLATA_LGC=/home/clement/.fonts/monospace/inconsolata-lgc/Inconsolata LGC for Powerline.ttf
TERMINUS=/home/clement/.fonts/monospace/terminus/TerminusTTF-4.39.ttf
MONONOKI=/home/clement/.fonts/monospace/mononoki/mononoki-Regular.ttf
XITS=/home/clement/.fonts/maths/xits-math.otf
XITS_BOLD=/home/clement/.fonts/maths/xits-mathbold.otf
STIX=/home/clement/.fonts/maths/STIXMath-Regular.otf
ASANA=/usr/share/fonts/truetype/asana-math/Asana-Math.otf
SYMBOLA=/home/clement/.fonts/maths/Symbola-hint.ttf
LATINMODERN=/home/clement/.fonts/maths/latinmodern-math.otf
TEXGYRESCHOLA=/home/clement/.fonts/maths/texgyreschola-math.otf
# DEJAVUSANS=/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
# DEJAVUSANSCONDENSED=/usr/share/fonts/truetype/dejavu/DejaVuSansCondensed.ttf
# DEJAVUSERIF=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerif.ttf
# DEJAVUSERIFCONDENSED=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSerifCondensed.ttf
FREESERIF=/usr/share/fonts/truetype/freefont/FreeSerif.ttf
ttf: monospacifier.py
rm -f ./fonts/*.ttf
./monospacifier.py \
--references ./sources/references/* \
--inputs ./sources/inputs/* \
--save-to ./fonts --copy-metrics # 2>&1 # --merge
prepare:
echo "References"
rm ./sources/references/*
cp "$(CONSOLAS)" ./sources/references/Consolas.ttf
cp "$(UBUNTU)" ./sources/references/UbuntuMono.ttf
cp "$(DEJAVU)" ./sources/references/DejaVuSansMono.ttf
cp "$(INCONSOLATA)" ./sources/references/Inconsolata.ttf
cp "$(INCONSOLATA_LGC)" ./sources/references/InconsolataLGCForPowerline.ttf
cp "$(TERMINUS)" ./sources/references/Terminus.ttf
cp "$(MONONOKI)" ./sources/references/Mononoki.ttf
echo "Inputs"
rm ./sources/inputs/*
cp "$(XITS)" ./sources/inputs/XITSMath.otf
cp "$(XITS_BOLD)" ./sources/inputs/XITSMath-B.otf
cp "$(STIX)" ./sources/inputs/STIXMath.otf
cp "$(ASANA)" ./sources/inputs/AsanaMath.otf
cp "$(SYMBOLA)" ./sources/inputs/Symbola.ttf
cp "$(LATINMODERN)" ./sources/inputs/LatinModernMath.otf
cp "$(TEXGYRESCHOLA)" ./sources/inputs/TexGyreScholaMath.otf
cp "$(FREESERIF)" ./sources/inputs/FreeSerif.ttf
# cp "$(DEJAVUSANS)" ./sources/inputs/DejaVuSans.ttf
# cp "$(DEJAVUSANSCONDENSED)" ./sources/inputs/DejaVuSansCondensed.ttf
# cp "$(DEJAVUSERIF)" ./sources/inputs/DejaVuSerif.ttf
# cp "$(DEJAVUSERIFCONDENSED)" ./sources/inputs/DejaVuSerifCondensed.ttf
install:
rm ~/.fonts/monospacified/*.ttf
cp fonts/*.ttf ~/.fonts/monospacified/
fc-cache
check-sources:
./coverage.py --glyphs 𝔹 ℝ ℙ ℕ × ≠ ≥ ≤ ± ¬ ∨ ∧ ∃ ∀ λ ⬳ ⟿ ⟸ ⟹ ⇒ ⟷ ↔ ⟵ ← ⟶ → ⊥ ⊤ ⊢ 𝓟 𝓝 ⧺ --fonts ./sources/inputs/*
check-output:
./coverage.py --glyphs 𝔹 ℝ ℙ ℕ × ≠ ≥ ≤ ± ¬ ∨ ∧ ∃ ∀ λ ⬳ ⟿ ⟸ ⟹ ⇒ ⟷ ↔ ⟵ ← ⟶ → ⊥ ⊤ ⊢ 𝓟 𝓝 ⧺ --fonts ./fonts/*