ttf-telugu-fonts and ttf-kannada-fonts ignored due to missing lang field in fonts.cache-1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ttf-indic-fonts |
Fix Released
|
Unknown
|
|||
ttf-indic-fonts (Baltix) |
Fix Released
|
Undecided
|
Unassigned | ||
ttf-indic-fonts (Debian) |
Fix Released
|
Unknown
|
|||
ttf-indic-fonts (Ubuntu) |
Fix Released
|
Medium
|
Soumyadip Modak |
Bug Description
= Problem =
The Telugu fonts provided by the ttf-telugu-fonts package (version 0.4.7) are effectively ignored for rendering Telugu text in Dapper because the /usr/share/
The same problem applies to Kannada fonts provided by the package ttf-kannada-fonts (see below).
For example, here is the situation before the fix:
$ fc-list :lang=hi
Samanata:
Gargi_1.
FreeSans:
Chandas:
Lohit Hindi:style=Regular
$ fc-list :lang=te
$
Notice that fontconfig correctly detects that the Hindi fonts provided by ttf-devanagari-
However, notice that fontconfig does not detect any fonts that should be used when rendering Telugu text (because ttf-telugu-fonts does not define the lang field properly in its fonts.cache-1 file).
The result of this situation can be seen in this screenshot (see attachment). Here the Telugu text is incorrectly rendered, and many glyphs are entirely missing (shown by Unicode hexadecimal boxes).
= Solution =
Replace the blank "lang=:" field with "lang=te:" in the /usr/share/
$ sudo sed -i.orig 's/lang=
Afterwards, you will see that fontconfig properly recognizes the Telugu fonts provided by ttf-telugu-fonts package:
$ fc-list :lang=te
Pothana2000:
Pothana2000,
As a result, Telugu text is now correctly rendered using the Telugu fonts provided by the ttf-telugu-fonts package, as shown here (see attachment).
= Further work =
To my knowledge, the fonts.cache-1 files are generated by the fc-cache command. Thus, the previous "solution" is a temporary fix.
We need to determine and fix what is causing the ttf-telugu-fonts package to *not* provide fc-cache with the correct lang=te information.
description: | updated |
description: | updated |
description: | updated |
Changed in ttf-indic-fonts: | |
status: | Unknown → Unconfirmed |
Changed in ttf-indic-fonts: | |
status: | Unconfirmed → Fix Released |
status: | Unconfirmed → Fix Released |
Changed in ttf-indic-fonts: | |
status: | Fix Committed → Fix Released |
Changed in ttf-indic-fonts (Baltix): | |
status: | New → Fix Released |
This bug also affects the following font packages:
$ find /usr/share/ fonts/truetype -name fonts.cache-1 | xargs grep -l 'lang=:' fonts/truetype/ openoffice/ fonts.cache- 1 fonts/truetype/ ttf-kannada- fonts/fonts. cache-1 fonts/truetype/ ttf-telugu- fonts/fonts. cache-1 fonts/truetype/ latex-xft- fonts/fonts. cache-1
/usr/share/
/usr/share/
/usr/share/
/usr/share/