Public bug reported:

Binary package hint: fontconfig

To find out what font the fontconfig matches to a generic, say Sans, for
a language, say English-US, I can use fc-match command in following two
ways:

LANG=en_US.UTF-8 && fc-match Sans

fc-match Sans:lang=en_US.UTF-8

Of the above two it is usually the second I use for finding what fonts
are set to Sans, Mono and Serif for different languages.

Now in freshly installed Ubuntu 10.10 - Beta platform / Gnome Desktop/ I
find that the second form fails to reveal correct matching only in case
of Serif generic for any language.

I have shown comparison of the above two forms of command usage - Sans,
Mono and Serif respectively for languages en-US, ta_IN (Tamil), si_LK
(Sinhala) and hi_IN (Hindi).

As shown by the boxed in (with red) parts  , the above 2nd form of usage
on left terminal yields match to Serif for each language wrongly as
"Lohit Tamil" font whereas on the right side the first form if usage
reveals correct matches.

By checking out effects of changing fonts in GEDIT, I have found that
actual matching is correct as revealed by the first of the above two
forms. So it is the second syntax that is affected only for Serif.

Since I noticed another issue with newly introduced 90-ttf-tamil-
fonts.conf (ref: https://bugs.launchpad.net/ubuntu/+source/ttf-indic-
fonts/+bug/630269 ) I got to wonder whether the newly introduced
90-ttf-<language>-fonts.conf (wherein <language> to mean Tamil, Hindi
etc ) files in /etc/fonts/conf.avail cause these problems. I removed the
"/etc/fonts/conf.d/90-ttf-tamil-fonts.conf -> /etc/fonts/conf.avail/90
-ttf-tamil-fonts.conf" link first. Sure enough "Lohit Tamil" changed to
"Lohit Punjabi" in the above mentioned wrong results. Then removing the
link for Punjabi, the wrong result changes to another indic language
font and so on. Removing such "90-ttf-" links for all indic languages
restores normalcy for the fc-match command usage with ":lang=" element !

So it appears the bug arises from the conf files whose file name start
with "90-ttf-"

K. Sethu

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: fontconfig 2.8.0-2ubuntu1
ProcVersionSignature: Ubuntu 2.6.35-19.28-generic 2.6.35.3
Uname: Linux 2.6.35-19-generic i686
Architecture: i386
Date: Mon Sep  6 07:11:35 2010
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Beta i386 (20100901.1)
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: fontconfig

** Affects: fontconfig (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: fontconfig i386 maverick

-- 
The command usage "fc-match Serif:lang=xx" where xx is any language  not 
revealing correct results
https://bugs.launchpad.net/bugs/631241
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to