summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--65-0-smc-meera.conf21
-rw-r--r--Makefile22
2 files changed, 43 insertions, 0 deletions
diff --git a/65-0-smc-meera.conf b/65-0-smc-meera.conf
new file mode 100644
index 0000000..e91e866
--- /dev/null
+++ b/65-0-smc-meera.conf
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+<match>
+ <test name="lang" compare="contains">
+ <string>ml</string>
+ </test>
+ <test name="family">
+ <string>sans-serif</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Meera</string>
+ </edit>
+</match>
+<alias>
+ <family>Meera</family>
+ <default>
+ <family>sans-serif</family>
+ </default>
+</alias>
+</fontconfig>
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..20b680e
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,22 @@
+#!/usr/bin/make -f
+
+fontpath=/usr/share/fonts/truetype/malayalam
+font=Meera
+
+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;