Comment 2 for bug 48326

Revision history for this message
Sunil Mohan Adapa (sunil) wrote : Re: Incorrectly rendered Telugu text, even with MOZ_ENABLE_PANGO=1

Please note that the problem is because ttf-freefont which contains some incomplete Telugu glyphs is being given priority over the Pothana2000 (from ttf-telugu-fonts). Since ttf-freefont does not itself specify lang=te perhaps this solution will work. When freefont also has lang=te the problem might reappear. Moreover, the problem does not appear with out ttf-freefont even with "lang=". Qt4 (earlier betas) and Java had a problem because of the lack of lang but Pango does fine. On my system I specify that Pothana2000 should be the default font by saying having /etc/fonts/local.conf similar to the following:

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

PS: this has nothing to do with Mozilla pango rendering.