Copy all values from pattern to font if the font doesn't have the element
authorBehdad Esfahbod <behdad@behdad.org>
Mon, 14 Jan 2013 20:36:38 +0000 (14:36 -0600)
committerBehdad Esfahbod <behdad@behdad.org>
Mon, 14 Jan 2013 20:36:38 +0000 (14:36 -0600)
Bug 59376 - FcFontRenderPrepare enhancement

src/fcmatch.c

index 6778967..3d15605 100644 (file)
@@ -549,8 +549,9 @@ FcFontRenderPrepare (FcConfig           *config,
        fe = FcPatternObjectFindElt (font, pe->object);
        if (!fe)
        {
-           v = FcValueCanonicalize(&FcPatternEltValues(pe)->value);
-           FcPatternObjectAdd (new, pe->object, v, FcTrue);
+           FcPatternObjectListAdd (new, pe->object,
+                                   FcValueListDuplicate (FcPatternEltValues(pe)),
+                                   1);
        }
     }