summaryrefslogtreecommitdiffstats
path: root/malayalam-fonts.conf
diff options
context:
space:
mode:
Diffstat (limited to 'malayalam-fonts.conf')
-rw-r--r--malayalam-fonts.conf48
1 files changed, 48 insertions, 0 deletions
diff --git a/malayalam-fonts.conf b/malayalam-fonts.conf
new file mode 100644
index 0000000..8eb5ab4
--- /dev/null
+++ b/malayalam-fonts.conf
@@ -0,0 +1,48 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+<!-- Malayalam (ml) -->
+<match target="font">
+ <test name="lang" compare="contains">
+ <string>ml</string>
+ </test>
+ <alias>
+ <family>sans-serif</family>
+ <prefer>
+ <family>Meera</family>
+ </prefer>
+ </alias>
+</match>
+
+<match target="font">
+ <test name="lang" compare="contains">
+ <string>ml</string>
+ </test>
+ <alias>
+ <family>serif</family>
+ <prefer>
+ <family>Rachana</family>
+ </prefer>
+ </alias>
+</match>
+
+<!-- multiply the matrix of Meera font for solving size mismatch with Rachana-->
+<match target="font">
+ <test name="family">
+ <string>Meera</string>
+ </test>
+ <edit name="matrix" mode="assign">
+ <times>
+ <name>matrix</name>
+ <matrix>
+ <double>1.2</double><double>0</double>
+ <double>0</double><double>1.2</double>
+ </matrix>
+ </times>
+ </edit>
+</match>
+
+<!-- Malayalam (ml) ends -->
+
+</fontconfig>
+