summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRajeesh K Nambiar <rajeeshknambiar@gmail.com>2014-11-25 19:32:26 +0100
committerRajeesh K Nambiar <rajeeshknambiar@gmail.com>2014-11-25 19:32:26 +0100
commit8a0e25f07fee29f4f3ff55956fef0704a8e878cc (patch)
tree42279922dd9a76e9e8530a4e6cd98b5885253e0e
parent24709d6f5f4906974d48535d8c24377f874bc331 (diff)
downloadDyuthi.git-master.tar.gz
Dyuthi.git-master.tar.xz
Dyuthi.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..383f676
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+#!/usr/bin/make -f
+
+fontpath=/usr/share/fonts/truetype/malayalam
+font=Dyuthi
+
+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;