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

This commit is contained in:
Akira TAGOH 2013-09-18 17:31:10 +09:00
parent 7e44a0b5a8
commit 5e6b8894ea
1 changed files with 4 additions and 2 deletions

View File

@ -552,14 +552,16 @@ FcFontRenderPrepare (FcConfig *config,
continue;
}
FcPatternObjectAdd (new, fe->object, v, FcFalse);
}
else
{
if (fel)
goto copy_lang;
v = FcValueCanonicalize(&FcPatternEltValues (fe)->value);
FcPatternObjectListAdd (new, fe->object,
FcValueListDuplicate (FcPatternEltValues (fe)),
FcTrue);
}
FcPatternObjectAdd (new, fe->object, v, FcFalse);
}
for (i = 0; i < pat->num; i++)
{