-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (38 loc) · 2.07 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
help:
@echo "###"
@echo "# Build targets for Neo Han Sans SC"
@echo "###"
@echo
@echo " make build: Builds the fonts and places them in the fonts/ directory"
@echo " make zip: Zip all fonts into a zip"
@echo
init: requirements.txt
pip install -Ur requirements.txt
touch init.stamp
build: build.stamp
# fontmake -m "fonts-temp/master-ufo/InterNumeric.designspace" -o variable --output-path "fonts/variable/InterNumeric[wght,RDNS].ttf" --filter DecomposeTransformedComponentsFilter --verbose DEBUG
# fontmake -m "fonts-temp/master-ufo/InterNumeric.designspace" -o variable-cff2 --output-path "fonts/variable/InterNumeric[wght,RDNS].otf"
build.stamp: init.stamp
fontmake -g "src/NeoHanSans-Variable.glyphspackage" -o ufo --output-dir "fonts-temp/master-ufo" --filter DecomposeTransformedComponentsFilter
python scripts/stat.py
fontmake -m "fonts-temp/master-ufo/NeoHanSansSC.designspace" -o variable --output-path "fonts-temp/variable/NeoHanSansSC[wght].ttf"
# fontmake -m "fonts-temp/master-ufo/NeoHanSansSC.designspace" -o variable-cff2 --output-path "fonts-temp/variable/NeoHanSansSC[wght].otf"
mkdir fonts
mkdir fonts/variable
gftools fix-nonhinting "fonts-temp/variable/NeoHanSansSC[wght].ttf" "fonts/variable/NeoHanSansSC[wght].ttf"
touch build.stamp
zip: build.stamp
cp -rf fonts NeoHanSansSC
zip -r NeoHanSans.zip NeoHanSansSC
rm -rf NeoHanSansSC
# fontbakery check-adobefonts "fonts/variable/InterNumeric[wght,RDNS].ttf"
test: build.stamp
fontbakery check-universal "fonts/variable/NeoHanSansSC[wght].ttf" -x com.google.fonts/check/gpos_kerning_info -x com.google.fonts/check/tabular_kerning -x com.google.fonts/check/monospace
test-google: build.stamp
fontbakery check-googlefonts "fonts/variable/NeoHanSansSC[wght].ttf" -x com.google.fonts/check/gpos_kerning_info -x com.google.fonts/check/tabular_kerning -x com.google.fonts/check/monospace -x com.google.fonts/check/render_own_name -x com.google.fonts/check/glyphsets/shape_languages -x com.google.fonts/check/glyph_coverage
clean:
rm -rf fonts
rm -rf fonts-temp
rm build.stamp
update:
pip install -Ur requirements.txt