Description of problem: Requesting a font in gu_IN locale which can render '1' returns Lohit Gujarati which doesn't have a glyph for 1 Version-Release number of selected component (if applicable): fontconfig-2.7.3-1.fc12 How reproducible: 100% Steps to Reproduce: 1. gcc `pkg-config --cflags --libs fontconfig` fontconfigdemo.c 2. ./a.out Actual results: "Lohit Gujarati" Expected results: A font which contains a glyph for 1
Created attachment 365219 [details] demo Am I missing something obvious here ?
$ fc-match ':lang=gu-IN' --verbose Pattern has 30 elts (size 32) family: "Lohit Gujarati"(s) familylang: "en"(s) style: "Regular"(s) stylelang: "en"(s) fullname: "Lohit Gujarati"(s) fullnamelang: "en"(s) slant: 0(i)(s) weight: 80(i)(s) width: 100(i)(s) size: 12(f)(s) pixelsize: 12.5(f)(s) foundry: "unknown"(s) hintstyle: 3(i)(s) hinting: FcTrue(s) verticallayout: FcFalse(s) autohint: FcFalse(s) globaladvance: FcTrue(s) file: "/usr/share/fonts/lohit/lohit_gu.ttf"(s) index: 0(i)(s) outline: FcTrue(s) scalable: FcTrue(s) dpi: 75(f)(s) scale: 1(f)(s) charset: 0000: 00000000 ffffffff f8000001 78000001 00000000 00000004 00000000 00800000 0009: 00000000 00000000 00000000 00000030 00000000 00000000 00000000 00000000 000a: 00000000 00000000 00000000 00000000 fffbbfee f3edfdff 00013bbf 0002ffcf 0020: 33183000 00000040 00000000 00000000 00000000 00000000 00000000 00000000 0022: 00040000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0025: 00000000 00000000 00000000 00000000 00000000 00000000 00001000 00000000 (s) lang: gu(s) fontversion: 157286(i)(s) capability: "otlayout:gujr"(s) fontformat: "TrueType"(s) embeddedbitmap: FcTrue(s) decorative: FcFalse(s) The charset element suggests that fontconfig thinks the font covers ASCII digits (those are one bit per char). So the problem is not with your code. Well, checking the font in fontforge, it does have glyphs for ASCII digits. Something's wrong with the cmap. Normally you don't see them mapped, but select "Compact" encoding in fontforge and you see that glyphs ids 125 on are the digits.
yep, numerals have a wrong encoding values thats why this bug is coming i will fix this in next version of lohit-gujarati-fonts, thanks Caolan for notifying this
fixed problem built lohit-gujarati-fonts-2.4.4-1 for F12 as well devel
*** Bug 529521 has been marked as a duplicate of this bug. ***
This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle. Changing version to '12'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
lohit-gujarati-fonts-2.4.4-1.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/lohit-gujarati-fonts-2.4.4-1.fc12
lohit-gujarati-fonts-2.4.4-1.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report.