[Fontconfig] fontconfig: Branch 'master'
Akira TAGOH
tagoh at kemper.freedesktop.org
Thu May 23 21:57:39 PDT 2013
src/fcname.c | 6 ++++++
1 file changed, 6 insertions(+)
New commits:
commit cd9b1033a68816a7acfbba1718ba0aa5888f6ec7
Author: Akira TAGOH <akira at tagoh.org>
Date: Fri May 24 13:55:07 2013 +0900
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)
...
diff --git a/src/fcname.c b/src/fcname.c
index 6dd4d49..a525345 100644
--- a/src/fcname.c
+++ b/src/fcname.c
@@ -318,6 +318,12 @@ FcNameFindNext (const FcChar8 *cur, const char *delim, FcChar8 *save, FcChar8 *l
while ((c = *cur))
{
+ if (!isspace (c))
+ break;
+ ++cur;
+ }
+ while ((c = *cur))
+ {
if (c == '\\')
{
++cur;
More information about the Fontconfig
mailing list