Bug 547307 - fc-query extracts locale code for some fonts and not for all
Summary: fc-query extracts locale code for some fonts and not for all
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: fontconfig
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Behdad Esfahbod
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-14 10:48 UTC by Parag Nemade
Modified: 2009-12-15 04:10 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-12-15 04:10:24 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Parag Nemade 2009-12-14 10:48:37 UTC
Description of problem:
fc-query extracts locale code for some fonts and not for all.

Version-Release number of selected component (if applicable):
fontconfig-2.8.0-1.fc12.x86_64
lohit-konkani-fonts-2.4.3-2.fc12.noarch

How reproducible:
always

Steps to Reproduce:
1. fc-query --format '%{=pkgkit}' /usr/share/fonts/lohit-konkani/Lohit-Konkani.ttf 
2. observe one of output lines contains
 font(lohitkonkani)
3. why not this as 
font(:lang=kok)

  
Actual results:
output as  font(lohitkonkani)

Expected results:
output should be font(:lang=kok)

Additional info:

Comment 1 Nicolas Mailhot 2009-12-14 12:35:02 UTC
Run fc-query with FC_DEBUG=256 set (or use repo-font-audit)

If you see a kok(some_number) fontconfig knowq about the language but the font file is missing some_number glyphs for fontconfig to accept the font for this language.

If you don't see kok at all someone needs to propose a kok .orth file for inclusion fontconfig-side

Comment 2 Parag Nemade 2009-12-14 13:24:47 UTC
kok.orth is already included in fontconfig project.

I got output as kok(0). I also observed all Devanagari script based lohit fonts have some_number as 0. May I know what this 0 mean?

Comment 3 Nicolas Mailhot 2009-12-14 13:46:33 UTC
0 means fontconfig considers there are no missing glyphs for the associated language, so it should appear in generated rpm metadata (if not that's a strange fontconfig bug)

Comment 4 Parag Nemade 2009-12-15 04:10:24 UTC
I am sorry for this bug but seems after recreating cache and rebooting machine problem is gone and now
fc-query --format '%{=pkgkit}' /usr/share/fonts/lohit-konkani/Lohit-Konkani.ttf 
font(lohitkonkani)
font(:lang=bh)
font(:lang=bho)
font(:lang=hi)
font(:lang=hne)
font(:lang=kok)
font(:lang=mai)
font(:lang=mr)
font(:lang=ne)
font(:lang=sa)


Note You need to log in before you can comment on or make changes to this bug.