fcdefault: no need to set FC_LANG in FcDefaultSubstitute() anymore
This commit is contained in:
parent
550fd49d4f
commit
07e52eeb09
|
@ -126,10 +126,6 @@ FcDefaultSubstitute (FcPattern *pattern)
|
||||||
FcPatternObjectAddDouble (pattern, FC_PIXEL_SIZE_OBJECT, size);
|
FcPatternObjectAddDouble (pattern, FC_PIXEL_SIZE_OBJECT, size);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FcPatternObjectGet (pattern, FC_LANG_OBJECT, 0, &v) == FcResultNoMatch)
|
|
||||||
{
|
|
||||||
FcPatternObjectAddString (pattern, FC_LANG_OBJECT, FcGetDefaultLang ());
|
|
||||||
}
|
|
||||||
if (FcPatternObjectGet (pattern, FC_FONTVERSION_OBJECT, 0, &v) == FcResultNoMatch)
|
if (FcPatternObjectGet (pattern, FC_FONTVERSION_OBJECT, 0, &v) == FcResultNoMatch)
|
||||||
{
|
{
|
||||||
FcPatternObjectAddInteger (pattern, FC_FONTVERSION_OBJECT, 0x7fffffff);
|
FcPatternObjectAddInteger (pattern, FC_FONTVERSION_OBJECT, 0x7fffffff);
|
||||||
|
|
Loading…
Reference in New Issue