blob: 0d59ccae540edd9c42f10c7bd75dd8c26cd8c73d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/usr/bin/make -f
fontpath=/usr/share/fonts/truetype/malayalam
font=Suruma
default: all
all: compile test webfonts
compile:
@echo "Generating ${font}.ttf"
@fontforge -lang=ff -c "Open('${font}.sfd'); Generate('${font}.ttf')";
webfonts:compile
@echo "Generating webfonts";
@sfntly -w ${font}.ttf ${font}.woff;
@sfntly -e -x ${font}.ttf ${font}.eot;
@[ -x `which woff2_compress` ] && woff2_compress ${font}.ttf;
test: compile
# Test the fonts
@echo "Testing font ${font}";
@hb-view ${font}.ttf --text-file tests/tests.txt --output-file tests/${font}.pdf;
|