Blame SOURCES/fontconfig-copy-all-value.patch
|
|
c5b8fc |
From 5e6b8894ea9d03caabdfc3a6bcd0c402edf840a8 Mon Sep 17 00:00:00 2001
|
|
|
c5b8fc |
From: Akira TAGOH <akira@tagoh.org>
|
|
|
c5b8fc |
Date: Wed, 18 Sep 2013 17:31:10 +0900
|
|
|
c5b8fc |
Subject: [PATCH] Copy all values from the font to the pattern if the pattern
|
|
|
c5b8fc |
doesn't have the element
|
|
|
c5b8fc |
|
|
|
c5b8fc |
---
|
|
|
c5b8fc |
src/fcmatch.c | 6 ++++--
|
|
|
c5b8fc |
1 file changed, 4 insertions(+), 2 deletions(-)
|
|
|
c5b8fc |
|
|
|
c5b8fc |
diff --git a/src/fcmatch.c b/src/fcmatch.c
|
|
|
c5b8fc |
index dec92b9..627aa1a 100644
|
|
|
c5b8fc |
--- a/src/fcmatch.c
|
|
|
c5b8fc |
+++ b/src/fcmatch.c
|
|
|
c5b8fc |
@@ -552,14 +552,16 @@ FcFontRenderPrepare (FcConfig *config,
|
|
|
c5b8fc |
|
|
|
c5b8fc |
continue;
|
|
|
c5b8fc |
}
|
|
|
c5b8fc |
+ FcPatternObjectAdd (new, fe->object, v, FcFalse);
|
|
|
c5b8fc |
}
|
|
|
c5b8fc |
else
|
|
|
c5b8fc |
{
|
|
|
c5b8fc |
if (fel)
|
|
|
c5b8fc |
goto copy_lang;
|
|
|
c5b8fc |
- v = FcValueCanonicalize(&FcPatternEltValues (fe)->value);
|
|
|
c5b8fc |
+ FcPatternObjectListAdd (new, fe->object,
|
|
|
c5b8fc |
+ FcValueListDuplicate (FcPatternEltValues (fe)),
|
|
|
c5b8fc |
+ FcTrue);
|
|
|
c5b8fc |
}
|
|
|
c5b8fc |
- FcPatternObjectAdd (new, fe->object, v, FcFalse);
|
|
|
c5b8fc |
}
|
|
|
c5b8fc |
for (i = 0; i < pat->num; i++)
|
|
|
c5b8fc |
{
|
|
|
c5b8fc |
--
|
|
|
c5b8fc |
1.8.3.1
|
|
|
c5b8fc |
|