summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRajeesh K Nambiar <rajeeshknambiar@gmail.com>2014-11-25 19:36:43 +0100
committerRajeesh K Nambiar <rajeeshknambiar@gmail.com>2014-11-25 19:36:43 +0100
commitc343293d7b7671b8bef4240f75cda2d2cec203fe (patch)
tree4abfb1f146e615ab604b4f90851c42ebd49ba6bc
parenta6d7bf4f39c1470a5fa5e88e691695df82afa4a3 (diff)
downloadRaghuMalayalamSans.git-c343293d7b7671b8bef4240f75cda2d2cec203fe.tar.gz
RaghuMalayalamSans.git-c343293d7b7671b8bef4240f75cda2d2cec203fe.tar.xz
RaghuMalayalamSans.git-c343293d7b7671b8bef4240f75cda2d2cec203fe.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..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;