From: handa Date: Tue, 6 Dec 2005 05:59:34 +0000 (+0000) Subject: (mfont__lookup_fontset): If only a fallback font is X-Git-Tag: REL-1-3-0~29 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=5b505dca6901d50190a87d4b6332812f641f13cc;p=m17n%2Fm17n-lib.git (mfont__lookup_fontset): If only a fallback font is found, don't use it for more than one character. --- diff --git a/src/fontset.c b/src/fontset.c index f054199..4dd3fe6 100644 --- a/src/fontset.c +++ b/src/fontset.c @@ -775,6 +775,8 @@ mfont__lookup_fontset (MRealizedFontset *realized, MGlyph *g, int *num, g, num, size))) return rfont; + if (per_lang) + *num = 1; if (language == Mt) { /* Try the above (3) */ @@ -793,6 +795,8 @@ mfont__lookup_fontset (MRealizedFontset *realized, MGlyph *g, int *num, g, num, size))) return rfont; + if (per_lang) + *num = 1; /* Then try the above (3) */ MPLIST_DO (plist, per_script) if (MPLIST_KEY (plist) != language