Copy all values from pattern to font if the font doesn't have the element
Bug 59376 - FcFontRenderPrepare enhancement
This commit is contained in:
parent
0831c1770e
commit
8828fffd93
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue