]> git.wh0rd.org - fontconfig.git/blobdiff - src/fcmatch.c
Copy the full pathname whenever duplicating an FcPattern; otherwise,
[fontconfig.git] / src / fcmatch.c
index a359a8b883b96b5d1fee4937e387b1b581290a51..38d083ee5283261de28432cc9c279e243f54ef18 100644 (file)
@@ -489,6 +489,10 @@ FcFontRenderPrepare (FcConfig          *config,
            FcPatternAdd (new, FcObjectPtrU(pe->object), 
                           FcValueCanonicalize(&FcValueListPtrU(pe->values)->value), FcTrue);
     }
+
+    if (FcPatternFindElt (font, FC_FILE))
+       FcPatternTransferFullFname (new, font);
+
     FcConfigSubstituteWithPat (config, new, pat, FcMatchFont);
     return new;
 }