Do not copy FC_*LANG_OBJECT even if it's not available on the pattern
those objects are linked to the corresponding string objects. this may causes inconsistency that those objects has more values than them.
This commit is contained in:
parent
e96d776088
commit
aad4d6f6c6
|
@ -532,7 +532,10 @@ FcFontRenderPrepare (FcConfig *config,
|
||||||
{
|
{
|
||||||
pe = &FcPatternElts(pat)[i];
|
pe = &FcPatternElts(pat)[i];
|
||||||
fe = FcPatternObjectFindElt (font, pe->object);
|
fe = FcPatternObjectFindElt (font, pe->object);
|
||||||
if (!fe)
|
if (!fe &&
|
||||||
|
pe->object != FC_FAMILYLANG_OBJECT &&
|
||||||
|
pe->object != FC_STYLELANG_OBJECT &&
|
||||||
|
pe->object != FC_FULLNAMELANG_OBJECT)
|
||||||
{
|
{
|
||||||
FcPatternObjectListAdd (new, pe->object,
|
FcPatternObjectListAdd (new, pe->object,
|
||||||
FcValueListDuplicate (FcPatternEltValues(pe)),
|
FcValueListDuplicate (FcPatternEltValues(pe)),
|
||||||
|
|
Loading…
Reference in New Issue