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:
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
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?
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)
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)