]> git.wh0rd.org - fontconfig.git/blobdiff - src/fclist.c
Reinstate basename patch, but keep a hash table linking FcPatterns to their
[fontconfig.git] / src / fclist.c
index 35d68aed421e56b3936527e5ec5d5d52b79b2ca9..fa567a0491338eec3a2ee039a7bcf5097bebed42 100644 (file)
@@ -422,6 +422,14 @@ FcListAppend (FcListHashTable      *table,
        else
            defidx = 0;
 
+        /* Also, copy over the full path info. */
+       if (!strcmp (os->objects[o], FC_FILE))
+       {
+           FcChar8 * s;
+           FcPatternGetString (font, FC_FILE, 0, &s);
+           FcPatternAddFullFname (bucket->pattern, FcPatternFindFullFname(font));
+       }
+
        e = FcPatternFindElt (font, os->objects[o]);
        if (e)
        {