Bug 64906 - FcNameParse() should ignore leading whitespace in parameters

After this change, the following works as expected:
$ FC_DEBUG=4 fc-match ":family=foo bar, sans-serif"
...
FcConfigSubstitute Pattern has 3 elts (size 16)
        family: "foo bar"(s) "sans-serif"(s)
...
This commit is contained in:
Akira TAGOH 2013-05-24 13:55:07 +09:00
parent 8d54091513
commit cd9b1033a6
1 changed files with 6 additions and 0 deletions

View File

@ -316,6 +316,12 @@ FcNameFindNext (const FcChar8 *cur, const char *delim, FcChar8 *save, FcChar8 *l
{
FcChar8 c;
while ((c = *cur))
{
if (!isspace (c))
break;
++cur;
}
while ((c = *cur))
{
if (c == '\\')