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);
|
fe = FcPatternObjectFindElt (font, pe->object);
|
||||||
if (!fe)
|
if (!fe)
|
||||||
{
|
{
|
||||||
v = FcValueCanonicalize(&FcPatternEltValues(pe)->value);
|
FcPatternObjectListAdd (new, pe->object,
|
||||||
FcPatternObjectAdd (new, pe->object, v, FcTrue);
|
FcValueListDuplicate (FcPatternEltValues(pe)),
|
||||||
|
1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue