From b3f2c23eb1fe5cf3feed8a87e72e7376a5199ba9 Mon Sep 17 00:00:00 2001 From: handa Date: Tue, 11 May 2004 23:27:09 +0000 Subject: [PATCH] (mfont__lookup_fontset): Don't repeatedly try a font that is failed to open. --- src/fontset.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- 1.7.10.4