fcdefault: no need to set FC_LANG in FcDefaultSubstitute() anymore

This commit is contained in:
Akira TAGOH 2012-06-08 15:54:48 +09:00
parent 550fd49d4f
commit 07e52eeb09
1 changed files with 0 additions and 4 deletions

View File

@ -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);