Copy all values from the font to the pattern if the pattern doesn't have the element
This commit is contained in:
parent
7e44a0b5a8
commit
5e6b8894ea
|
@ -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++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue