HowtoFixIndicFontRendering

Differences between revisions 6 and 7
Revision 6 as of 2006-06-08 07:34:52
Size: 3629
Editor: college9-21-89
Comment: join problem & bug reports sections
Revision 7 as of 2006-06-08 07:40:26
Size: 4111
Editor: college9-21-89
Comment: add Dapper screenshots from bug reports
Deletions are marked like this. Additions are marked like this.
Line 11: Line 11:
For Ubuntu Dapper, here is a screenshot of:
 * correctly rendered Telugu text http://librarian.launchpad.net/3009646/dapper-telugu-fixed.png
 * correctly rendered Kannada text http://librarian.launchpad.net/3010085/dapper-kannada-fixed.png
Line 14: Line 18:

For Ubuntu Dapper, here is a screenshot of:
 * incorrectly rendered Telugu text http://librarian.launchpad.net/3009645/dapper-telugu.png
 * incorrectly rendered Kannada text http://librarian.launchpad.net/3010084/dapper-kannada.png

Problem

The rendering of Indic fonts in Ubuntu Breezy and Ubuntu Dapper is incorrect. The following bug reports are related to this problem:

Expected results

In Ubuntu Breezy, the screenshot below shows how the same Telugu text is rendered after the problem is fixed. Here, the text appears as expected and is comprehensible. http://people.ucsc.edu/~skurapat/pub/tmp/Screenshot-gedit-good.png

For Ubuntu Dapper, here is a screenshot of:

Actual results

In Ubuntu Breezy, the screenshot below shows how Telugu text is rendered before the problem is fixed. Here, the text appears garbled and is incomprehensible because (1) some adjacent glyphs are of uneven sizes, (2) some accents and vowels are drawn on the wrong consonant, and (3) some consonant clusters are rendered incorrectly. http://people.ucsc.edu/~skurapat/pub/tmp/Screenshot-gedit-bad.png

For Ubuntu Dapper, here is a screenshot of:

Solution

Ubuntu Breezy

Remove the [http://packages.ubuntu.com/dapper/x11/ttf-freefont ttf-freefont] package because (1) it contains low quality Indic fonts for some Indian languages, and (2) it is given priority over the ttf-indic-fonts package which contains high quality Indic fonts. Thanks to Soumyadip Modak in the [http://indlinux.org IndLinux] mailing list for this solution.

ttf-indic-fonts does not have all Indian fonts. In a system with ttf-freefont uninstalled and ttf-indic-fonts installed, Tamil text was "shown" in Telugu. After installing ttf-tamil-fonts, Tamil text was seen correctly. ttf-<otherlanguage>-fonts packages are also available. See [http://www.indlinux.org/wiki/index.php/FontInstallation#Distro_specifics FontInstallation].

Ubuntu Dapper

The following solutions fix the general rendering of Telugu text in Ubuntu Dapper.

  1. Please see the solution in the bug report (link is above) regarding "ttf-telugu-fonts" and "ttf-kannada-fonts".
  2. Another way to solve the problem is to set fontconfig perferences to prefer Pothana2000 (from ttf-telugu-fonts) font over FreeFont. Put something like the following in ~/.fonts.conf or /etc/fonts/local.conf:

<?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>

However, note that this will only work for Telugu. If you want to see both Telugu and Kannada text, for example, then use the first solution.

Firefox

In addition to one of the above solutions, there is one more step you need to perform get correct rendering of Telugu, Kannada, Hindi, etc. text in Ubuntu Dapper. This step is installing the correct language packs for each language (see the bug report above regarding Firefox):

  • I installed the language packs like this:
    • $ sudo apt-get install language-pack-te language-pack-kn
    Then I ran firefox without any MOZ_ variables:
    • $ firefox te.wikipedia.org kn.wikipedia.org

CategoryDocumentation CategoryCleanup

HowtoFixIndicFontRendering (last edited 2008-08-06 16:35:40 by localhost)