From: handa Date: Tue, 11 May 2004 23:27:09 +0000 (+0000) Subject: (mfont__lookup_fontset): Don't repeatedly try a font X-Git-Tag: withdl~222 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3f2c23eb1fe5cf3feed8a87e72e7376a5199ba9;p=m17n%2Fm17n-lib.git (mfont__lookup_fontset): Don't repeatedly try a font that is failed to open. --- diff --git a/src/fontset.c b/src/fontset.c index 4924acf..d7c0a1a 100644 --- a/src/fontset.c +++ b/src/fontset.c @@ -531,6 +531,8 @@ mfont__lookup_fontset (MRealizedFontset *realized, MGlyph *g, int *num, MPLIST_DO (plist, font_groups[i]) { rfont = (MRealizedFont *) MPLIST_VAL (plist); + if (rfont->status < 0) + continue; g->code = mfont__encode_char (rfont, g->c); if (g->code != MCHAR_INVALID_CODE) break; @@ -553,6 +555,8 @@ mfont__lookup_fontset (MRealizedFontset *realized, MGlyph *g, int *num, MPLIST_DO (plist, MPLIST_NEXT (plist)) { rfont = (MRealizedFont *) MPLIST_VAL (plist); + if (rfont->status < 0) + continue; for (j = 0; j < *num; j++) { g[j].code = mfont__encode_char (rfont, g[j].c);