-
Notifications
You must be signed in to change notification settings - Fork 113
/
Makefile
39 lines (29 loc) · 1.01 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
# To build with different settings (e.g. turn on character glyph copying),
# edit build.py and then "make".
default: without-characters
all: without-characters with-characters
clean:
rm -rf fonts/output/* fonts/output-with-characters/* Ligaturized*.zip
release: clean all pack
pack:
zip -r -9 -j LigaturizedFonts.zip fonts/output/
zip -r -9 -j LigaturizedFontsWithCharacters.zip fonts/output-with-characters/
without-characters:
fontforge -lang=py -script build.py 2>&1 \
| grep -Fv 'This contextual rule applies no lookups.' \
| grep -Fv 'Bad device table'
with-characters:
fontforge -lang=py -script build.py --copy-character-glyphs 2>&1 \
| grep -Fv 'This contextual rule applies no lookups.' \
| grep -Fv 'Bad device table'
ligature-list:
luajit name2dict.lua < fonts/fira/FiraCode.glyphs
testpattern:
grep -F "{ #" ligatures.py \
| grep -v absent \
| cut -d'#' -f2 \
| tr -d ' ' \
| egrep '.' \
| sed -E 's,\\,\\\\,g' \
| xargs printf '| %6s %6s %6s %6s %6s %6s %6s %6s |\n'
.PHONY: testpattern