diff options
author | Rajeesh K Nambiar <rajeeshknambiar@gmail.com> | 2014-11-25 19:36:43 +0100 |
---|---|---|
committer | Rajeesh K Nambiar <rajeeshknambiar@gmail.com> | 2014-11-25 19:36:43 +0100 |
commit | c343293d7b7671b8bef4240f75cda2d2cec203fe (patch) | |
tree | 4abfb1f146e615ab604b4f90851c42ebd49ba6bc /Makefile | |
parent | a6d7bf4f39c1470a5fa5e88e691695df82afa4a3 (diff) | |
download | RaghuMalayalamSans.git-master.tar.gz RaghuMalayalamSans.git-master.tar.xz RaghuMalayalamSans.git-master.zip |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..b169917 --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +#!/usr/bin/make -f + +fontpath=/usr/share/fonts/truetype/malayalam +font=RaghuMalayalamSans + +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; |