Copy all values from pattern to font if the font doesn't have the element

Bug 59376 - FcFontRenderPrepare enhancement
This commit is contained in:
Behdad Esfahbod 2013-01-14 14:36:38 -06:00
parent 0831c1770e
commit 8828fffd93
1 changed files with 3 additions and 2 deletions

View 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);
}
}