From 07e52eeb097a4e3c147e00ed7a6eb7652a611751 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Fri, 8 Jun 2012 15:54:48 +0900 Subject: [PATCH] fcdefault: no need to set FC_LANG in FcDefaultSubstitute() anymore --- src/fcdefault.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/fcdefault.c b/src/fcdefault.c index ce90a88..c6b5669 100644 --- a/src/fcdefault.c +++ b/src/fcdefault.c @@ -126,10 +126,6 @@ FcDefaultSubstitute (FcPattern *pattern) 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) { FcPatternObjectAddInteger (pattern, FC_FONTVERSION_OBJECT, 0x7fffffff);