[Fedora-i18n-bugs] [Bug 518161] New: "contains" expression seems not working on the fontconfig rule

bugzilla at redhat.com bugzilla at redhat.com
Wed Aug 19 08:59:08 UTC 2009


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.

Summary: "contains" expression seems not working on the fontconfig rule

https://bugzilla.redhat.com/show_bug.cgi?id=518161

           Summary: "contains" expression seems not working on the
                    fontconfig rule
           Product: Fedora
           Version: rawhide
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: medium
          Priority: low
         Component: fontconfig
        AssignedTo: besfahbo at redhat.com
        ReportedBy: tagoh at redhat.com
         QAContact: extras-qa at fedoraproject.org
                CC: besfahbo at redhat.com, pnemade at redhat.com,
                    fedora-fonts-bugs-list at redhat.com,
                    fedora-i18n-bugs at redhat.com
   Estimated Hours: 0.0
    Classification: Fedora
    Target Release: ---


Created an attachment (id=357904)
 --> (https://bugzilla.redhat.com/attachment.cgi?id=357904)
sample fontconfig rule

Description of problem:
Even if the pattern contains strings that the rule specifies with "contains"
expression, it doesn't match.

Version-Release number of selected component (if applicable):
fontconfig-2.7.1-1.fc12

How reproducible:
always

Steps to Reproduce:
1.install lohit-hindi-fonts and lohit-marathi-fonts
2.put the attached rule into /etc/fonts/conf.d
3.fc-match "sans-serif:lang=mr"
4.fc-match "sans-serif:lang=mr-in"

Actual results:
3. lohit_mr.ttf: "Lohit Marathi" "Regular"
4. lohit_hi.ttf: "Lohit Hindi" "Regular"

Expected results:
the result of 3 and 4 should be:
lohit_mr.ttf: "Lohit Marathi" "Regular"


Additional info:
>From a debug log:
FcConfigSubstitute test pattern any lang Contains "mr"
FcLangSet mr-in contains mr
        Missing bitmap ku-am
No match

I'm not really sure why fontconfig refers ku-am map here but apparently it
looks like fontconfig doesn't know what mr-in is.

Anyway, if no explicit lang pattern is given and applications calls
FcDefaultSubstitute(), lang will be set like mr-in from current locale
mr_IN.UTF-8 say.

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.




More information about the i18n-bugs mailing list