Comment 17 for bug 48280

Revision history for this message
Sunil Mohan Adapa (sunil) wrote :

To have preference for Telugu fonts and Kannada fonts, the format is like this:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
 <alias>
  <family>sans-serif</family>
  <prefer>
   <family>Kedage</family>
   <family>Pothana2000</family>
  </prefer>
 </alias>
 <alias>
  <family>serif</family>
  <prefer>
   <family>Kedage</family>
   <family>Pothana2000</family>
  </prefer>
 </alias>
 <alias>
  <family>monospace</family>
  <prefer>
   <family>Kedage</family>
   <family>Pothana2000</family>
  </prefer>
 </alias>
</fontconfig>

You can have the default font set for all the language like this. Note that I have changed from <accept> to <prefer>. Somehow both work tags for Telugu and only <prefer> works for Kannada.