-
Notifications
You must be signed in to change notification settings - Fork 21
/
temporal_fonts.sh
executable file
·54 lines (41 loc) · 1.71 KB
/
temporal_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
#!/usr/bin/env bash
set -e
[[ -z "$VIRTUAL_ENV" ]] && echo "Refusing to run outside of venv. See README.md." && exit 100
python3 -m pip install 'fonttools >= 4.41.1'
# import functions and globals
source url.sh
source helper.sh
source categories.sh
# --- execution starts here ---
mkdir -p cache/
# GoNotoCurrentRegular.ttf
create_cjk_subset
create_duployan_subset
create_japanese_kana_subset
create_korean_hangul_subset
create_math_subset
create_tibetan_subset
create_go_noto_current_with_full_korean
drop_vertical_tables NotoSansMongolian-Regular.ttf
drop_vertical_tables NotoSansNushu-Regular.ttf
drop_vertical_tables NotoTraditionalNushu-Bold.ttf
echo "Generating GoNotoCurrent-Regular.ttf. Current time: $(date)."
go_build GoNotoCurrent-Regular.ttf "${GoNotoCurrentRegular[@]}"
echo "Generating GoNotoCurrent-Bold.ttf. Current time: $(date)."
go_build GoNotoCurrent-Bold.ttf "${GoNotoCurrentBold[@]}"
echo "Generating GoNotoKurrent-Regular.ttf. Current time: $(date)."
go_build GoNotoKurrent-Regular.ttf "${GoNotoKurrentRegular[@]}"
echo "Generating GoNotoKurrent-Bold.ttf. Current time: $(date)."
go_build GoNotoKurrent-Bold.ttf "${GoNotoKurrentBold[@]}"
# GoNotoAncient.ttf
drop_vertical_tables NotoSerifDogra-Regular.ttf
drop_vertical_tables NotoSansNandinagari-Regular.ttf
drop_vertical_tables NotoSerifTangut-Regular.ttf
echo "Generating GoNotoAncient.ttf. Current time: $(date)."
go_build GoNotoAncient.ttf "${GoNotoAncient[@]}"
# GoNotoCurrentSerif.ttf
echo "Generating GoNotoCurrentSerif.ttf. Current time: $(date)."
go_build GoNotoCurrentSerif.ttf "${GoNotoCurrentSerif[@]}"
# GoNotoAncientSerif.ttf
echo "Generating GoNotoAncientSerif.ttf. Current time: $(date)."
go_build GoNotoAncientSerif.ttf "${GoNotoAncientSerif[@]}"