-
Notifications
You must be signed in to change notification settings - Fork 2
/
generate-all-fonts.sh
executable file
·64 lines (51 loc) · 5.35 KB
/
generate-all-fonts.sh
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
#!/bin/bash
# Arguments are:
# * FreeType font file to load (eg: Vera.ttf)
# * FreeType font size to use (eg: 23)
# * Python filename to create (eg: heyd_23.py)
# * Name of the object inside the created python filename (eg: Heydings_23)
FULL_CHARSET=#32-#125,#160-#255
MINIMAL_CHARSET=#32-#125,#160-#163,#166-#169,#171,#173,#175,#176-#177,#180,#187,#224,#231-#234
python3 ft-generate.py ttf-fonts/heydings_icons.ttf 23 upy-fonts/heyd_23.py Heydings_23 --descender= --special-align= --chars=#33,#42-#43,#45,#49-#54,#56,#64-#90,#97-#105,#107-#119,#121
python3 ft-generate.py ttf-fonts/Entypo.otf 23 upy-fonts/etypo_13.py Entypo_13 --descenders= --special-align= --chars=#33-#126,#174,#196-#197,#199,#201,#209,#214,#220,#224-#229,#231-#239,#241-#244,#246
python3 ft-generate.py ttf-fonts/Entypo.otf 42 upy-fonts/etypo_23.py Entypo_23 --descenders= --special-align= --chars=#33-#126,#174,#196-#197,#199,#201,#209,#214,#220,#224-#229,#231-#239,#241-#244,#246
python3 ft-generate.py ttf-fonts/Arrows.ttf 24 upy-fonts/arrows_15.py Arrows_15 --descenders= --special-align=#65:M,#66:M,#73:M,#74:M,#81:M,#82:M,#83:M,#84:M,#85:M,#86:M,#87:M,#88:M,#97:M,#98:M --chars=#65-#90,#97-#122
python3 ft-generate.py ttf-fonts/Arrows.ttf 36 upy-fonts/arrows_23.py Arrows_23 --descenders= --special-align=#65:M,#66:M,#73:M,#74:M,#81:M,#82:M,#83:M,#84:M,#85:M,#86:M,#87:M,#88:M,#97:M,#98:M --chars=#65-#90,#97-#122
python3 ft-generate.py ttf-fonts/Vera.ttf 8 upy-fonts/vera_8.py Vera_8 --chars=$FULL_CHARSET
python3 ft-generate.py ttf-fonts/Vera.ttf 9 upy-fonts/vera_9.py Vera_9 --chars=$FULL_CHARSET
python3 ft-generate.py ttf-fonts/Vera.ttf 10 upy-fonts/vera_10.py Vera_10 --chars=$FULL_CHARSET
python3 ft-generate.py ttf-fonts/Vera.ttf 14 upy-fonts/vera_15.py Vera_15 --chars=$FULL_CHARSET
python3 ft-generate.py ttf-fonts/Vera.ttf 23 upy-fonts/vera_23.py Vera_23 --chars=$FULL_CHARSET
python3 ft-generate.py ttf-fonts/Vera.ttf 8 upy-fonts/vera_m8.py Vera_m8 --chars=$MINIMAL_CHARSET
python3 ft-generate.py ttf-fonts/Vera.ttf 9 upy-fonts/vera_m9.py Vera_m9 --chars=$MINIMAL_CHARSET
python3 ft-generate.py ttf-fonts/Vera.ttf 10 upy-fonts/vera_m10.py Vera_m10 --chars=$MINIMAL_CHARSET
python3 ft-generate.py ttf-fonts/Vera.ttf 14 upy-fonts/vera_m15.py Vera_m15 --chars=$MINIMAL_CHARSET
python3 ft-generate.py ttf-fonts/Vera.ttf 23 upy-fonts/vera_m23.py Vera_m23 --chars=$MINIMAL_CHARSET
python3 ft-generate.py ttf-fonts/VeraMono.ttf 9 upy-fonts/veram_9.py VeraMono_9 --chars=$FULL_CHARSET
python3 ft-generate.py ttf-fonts/VeraMono.ttf 10 upy-fonts/veram_10.py VeraMono_10 --chars=$FULL_CHARSET
python3 ft-generate.py ttf-fonts/VeraMono.ttf 15 upy-fonts/veram_15.py VeraMono_15 --chars=$FULL_CHARSET
python3 ft-generate.py ttf-fonts/VeraMono.ttf 23 upy-fonts/veram_23.py VeraMono_23 --chars=$FULL_CHARSET
python3 ft-generate.py ttf-fonts/VeraMono.ttf 9 upy-fonts/veram_m9.py VeraMono_m9 --chars=$MINIMAL_CHARSET
python3 ft-generate.py ttf-fonts/VeraMono.ttf 10 upy-fonts/veram_m10.py VeraMono_m10 --chars=$MINIMAL_CHARSET
python3 ft-generate.py ttf-fonts/VeraMono.ttf 15 upy-fonts/veram_m15.py VeraMono_m15 --chars=$MINIMAL_CHARSET
python3 ft-generate.py ttf-fonts/VeraMono.ttf 23 upy-fonts/veram_m23.py VeraMono_m23 --chars=$MINIMAL_CHARSET
python3 ft-generate.py ttf-fonts/Roboto-Light.ttf 8 upy-fonts/robotl_m8.py RobotoLight_m8 --chars=$MINIMAL_CHARSET
python3 ft-generate.py ttf-fonts/Roboto-Light.ttf 10 upy-fonts/robotl_m10.py RobotoLight_m10 --chars=$MINIMAL_CHARSET
python3 ft-generate.py ttf-fonts/Roboto-Light.ttf 12 upy-fonts/robotl_m12.py RobotoLight_m12 --chars=$MINIMAL_CHARSET
python3 ft-generate.py ttf-fonts/Roboto-Light.ttf 15 upy-fonts/robotl_m15.py RobotoLight_m15 --chars=$MINIMAL_CHARSET
python3 ft-generate.py ttf-fonts/Roboto-Light.ttf 20 upy-fonts/robotl_m20.py RobotoLight_m20 --chars=$MINIMAL_CHARSET
# FontDrawer not stable for height 23
# python3 ft-generate.py ttf-fonts/Roboto-Light.ttf 23 upy-fonts/robotl_23.py RobotoLight_23 --chars=$MINIMAL_CHARSET
python3 ft-generate.py ttf-fonts/DejaVuSansMono.ttf 8 upy-fonts/dejav_m8.py dejav_m8 --chars=$MINIMAL_CHARSET
python3 ft-generate.py ttf-fonts/DejaVuSansMono.ttf 10 upy-fonts/dejav_m10.py dejav_m10 --chars=$MINIMAL_CHARSET
python3 ft-generate.py ttf-fonts/DejaVuSansMono.ttf 12 upy-fonts/dejav_m12.py dejav_m12 --chars=$MINIMAL_CHARSET
python3 ft-generate.py ttf-fonts/DejaVuSansMono.ttf 15 upy-fonts/dejav_m15.py dejav_m15 --chars=$MINIMAL_CHARSET
python3 ft-generate.py ttf-fonts/DejaVuSansMono.ttf 20 upy-fonts/dejav_m20.py dejav_m20 --chars=$MINIMAL_CHARSET
python3 ft-generate.py ttf-fonts/FreeSerif-4aeK.ttf 10 upy-fonts/fserif_m10.py fserif_m10 --chars=$MINIMAL_CHARSET
python3 ft-generate.py ttf-fonts/FreeSerif-4aeK.ttf 12 upy-fonts/fserif_m12.py fserif_m12 --chars=$MINIMAL_CHARSET
python3 ft-generate.py ttf-fonts/FreeSerif-4aeK.ttf 15 upy-fonts/fserif_m15.py fserif_m15 --chars=$MINIMAL_CHARSET
python3 ft-generate.py ttf-fonts/FreeSerif-4aeK.ttf 20 upy-fonts/fserif_m20.py fserif_m20 --chars=$MINIMAL_CHARSET
python3 ft-generate.py ttf-fonts/PitchDisplayRegularDemo.ttf 14 upy-fonts/pitch_15.py Pitch_15 --chars=$FULL_CHARSET
python3 ft-generate.py ttf-fonts/PitchDisplayRegularDemo.ttf 22 upy-fonts/pitch_23.py Pitch_23 --chars=$FULL_CHARSET
python3 ft-generate.py ttf-fonts/PitchDisplayRegularDemo.ttf 14 upy-fonts/pitch_15.py Pitch_m15 --chars=$MINIMAL_CHARSET
python3 ft-generate.py ttf-fonts/PitchDisplayRegularDemo.ttf 22 upy-fonts/pitch_23.py Pitch_m23 --chars=$MINIMAL_CHARSET