Bug 64906

Summary: FcNameParse() should ignore leading whitespace in parameters
Product: fontconfig Reporter: Akira TAGOH <akira>
Component: libraryAssignee: Akira TAGOH <akira>
Status: RESOLVED FIXED QA Contact: Behdad Esfahbod <freedesktop>
Severity: normal    
Priority: medium CC: fontconfig-bugs
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Akira TAGOH 2013-05-23 10:33:30 UTC
The following example gives unexpected behavior and fails to match the pattern in some case.

$ fc-match ":family=Cantarell, sans-serif"
...
FcConfigSubstitute Pattern has 3 elts (size 16)
        family: "cantarell"(s) " sans-serif"(s)
        lang: "ja"(w)
        prgname: "lt-fc-match"(s)

Most built-in rules are fortunately not failed because "ignore-blanks" option works around as a side-effect.
Comment 1 Akira TAGOH 2013-05-24 04:59:17 UTC
Fixed in git.

...
FcConfigSubstitute Pattern has 3 elts (size 16)
        family: "Cantarell"(s) "sans-serif"(s)
        lang: "ja"(w)
        prgname: "lt-fc-match"(s)

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.