Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=621445
--- Comment #3 from K. Sethu skhome@gmail.com 2010-08-05 02:34:10 EDT --- (In reply to comment #2)
(In reply to comment #6)
- The current 66-lohit-tamil.conf does not supersede 65-nonlatin.conf for
"sans-serif". 65-nonlatin.conf has TSCu_Paranar font at priority above Lohit Tamil; and so if TSCu_Paranar Regular and / or TSCu_Paranar Bold are fonts are installed then for sans-serif TSCu_Paranar regular is matched by fontconfig if Regular only or both Regular and Bold are installed. If only Bold is installed then it is matched to sans-serif. Only if both regular and bold of TSCu_Paranar are NOT installed then Lohit Tamil gets matched to sans-serif.
Yes, i will fix this by making lohit tamil priority 65-0
To supersede with language specific matching from above (i.e. in /etc/font/conf.d/ with a config file link name starting with less than 65-n to supersede 65-nonlatin.conf) there is another method not using mode="prepend" . That method is not included in the Fedora tips at : http://fedoraproject.org/wiki/Fontconfig_packaging_tips#Locale-specific_over...
For the other method we make 65-lohit-tamil.conf as follows :
----------------------------------------------------- <?xml version="1.0"?> <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> <fontconfig> <!-- Tamil (ta) --> <match target="font"> <test name="lang" compare="contains"> <string>ta</string> </test> <alias> <family>sans-serif</family> <prefer> <family>Lohit Tamil</family> </prefer> </alias> </match>
<!-- Tamil (ta) ends --> </fontconfig> ---------------------------------------------------------
Then since 65-lohit-tamil.conf is less than 65-nonlatin.conf the above should supersede 65-nonlatin.conf . Though I have not tested yet with 65 (which I will do later tonight) using 63, I have found that the above matches sans-serif with Lohit Tamil for Tamil language contents but not for any other languages, and regardless of the locale in which desktop is operated.
- Similarly if gnu-free fonts are installed then due to
60-gnu-free-serif.conf, for serif, it is FreeSerif font that is matched by fontconfig.
This is really bug from gnu-free fonts, they should not use this priority see "/usr/share/fontconfig/templates/fontconfig-priorities.txt"
"65-69 Fonts with less common encodings, ending with fonts that provide, coverage of exotic unicode blocks at the expense of drawing,quality"
should report bug against them
But in Ubuntus installing the deb package for the same Free Fonts does not pump in the 60-gnu-free-serif.conf, 60-gnu-free-sans.conf and 60-gnu-free-mono.conf . Aren't those inclusions in Fedora made by Fedora's packagers for gnu-free ?
but one more thing gnu-free providing serif fonts, and lohit is sans so it is ok if gnu-free get selected for fc-match serif:lang=ta
There are some contents in web sites, such as some buttons in ta.wikipedia.org are detected as serif and when FreeSerif is matched to serif those content, if in bold, do not get rendered since the bold version of Free Serif does not have Tamil glyphs. Also FreeSerif regular font's coverage of Tamil glyphs is not comprehensive with many symbols and some late additions to Unicode missing. I will attach some screen shots later tonight to show those problems.
K. Sethu