Bug 23359 - Same script based languages outputs same font name for fc-match
Summary: Same script based languages outputs same font name for fc-match
Status: RESOLVED FIXED
Alias: None
Product: fontconfig
Classification: Unclassified
Component: fc-match (show other bugs)
Version: 2.7
Hardware: Other Linux (All)
: medium normal
Assignee: Keith Packard
QA Contact: Behdad Esfahbod
URL:
Whiteboard:
Keywords:
Depends on: 23419
Blocks:
  Show dependency treegraph
 
Reported: 2009-08-16 22:59 UTC by Parag
Modified: 2009-09-02 01:39 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Parag 2009-08-16 22:59:21 UTC
When started gnome desktop in Assamese language and used fc-match output is
lohit_bn.ttf: "Lohit Bengali" "Regular"
When started gnome desktop in Bengali language and used fc-match output is
lohit_bn.ttf: "Lohit Bengali" "Regular"

This is same for other similar script based languages like for Devanagari script Hindi, Marathi, Maithili, 

Output on Fedora 11, using fontconfig-2.7.1-1.fc11 for Devanagari based languages is same
LANG=hi_IN.UTF-8 fc-match
lohit_hi.ttf: "Lohit Hindi" "Regular"

LANG=mai_IN.UTF-8 fc-match
lohit_hi.ttf: "Lohit Hindi" "Regular"

LANG=mr_IN.UTF-8 fc-match
lohit_hi.ttf: "Lohit Hindi" "Regular"

LANG=kok_IN.UTF-8 fc-match
lohit_hi.ttf: "Lohit Hindi" "Regular"

LANG=ne_NP.UTF-8 fc-match
lohit_hi.ttf: "Lohit Hindi" "Regular"

LANG=ks_IN.UTF-8 fc-match
10x20.pcf: "MiscFixed" "Regular"


We have now separate fonts now in lohit-fonts package for each of the above Indic language.
Comment 1 Behdad Esfahbod 2009-08-17 13:54:04 UTC
Does your font package also install fontconfig rules to prefer different fonts for different languages?  That's where the preference comes from.  You may want to review Fedora font packaging guidelines for that.
Comment 2 Parag 2009-08-19 21:30:52 UTC
I have created 2 fontconfig rule files.
http://paragn.fedorapeople.org/66-lohit-hindi.conf
http://paragn.fedorapeople.org/66-lohit-marathi.conf

Installed them at /usr/share/fontconfig/conf.avail with link to /etc/fonts/conf.d

Removed font name entries from /etc/fonts/conf.d/65-nonlatin.conf. (I don't know 
what is use of this file and why only few font names are written there)

and tried to run
LANG=mr_IN.UTF-8 fc-match and I got 
lohit_hi.ttf: "Lohit Hindi" "Regular"


where should I look to fix above problem?

Comment 3 Behdad Esfahbod 2009-08-21 07:11:42 UTC
I suggest asking the fedora fonts list.  Sorry, busy with other stuff right now, can't go debug your config files for you.
Comment 4 Behdad Esfahbod 2009-08-26 10:54:19 UTC
This sounds like a dup of the other bug.  Should be fixed now.  The rest is not a fontconfig bug.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.