summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRajeesh K Nambiar <rajeeshknambiar@gmail.com>2014-11-25 19:33:07 +0100
committerRajeesh K Nambiar <rajeeshknambiar@gmail.com>2014-11-25 19:33:07 +0100
commit5177bc6f0ea3d4753a401813632fcde838af615e (patch)
tree60b6ab43664654a854ab705e3bd887ffdf86e6c7
parent9221c4cd6896d4933bd068e2da62cb0ffa93b246 (diff)
downloadKalyani.git-master.tar.gz
Kalyani.git-master.tar.xz
Kalyani.git-master.zip
Add Makefile to build ttf/woff/eot and testHEADmaster
-rw-r--r--Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..4d5efaa
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+#!/usr/bin/make -f
+
+fontpath=/usr/share/fonts/truetype/malayalam
+font=Kalyani
+
+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;