fontconfig: Branch 'master'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 src/fcname.c |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit cd9b1033a68816a7acfbba1718ba0aa5888f6ec7
Author: Akira TAGOH <akira@xxxxxxxxx>
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;
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig




[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux