From 5b505dca6901d50190a87d4b6332812f641f13cc Mon Sep 17 00:00:00 2001 From: handa Date: Tue, 6 Dec 2005 05:59:34 +0000 Subject: [PATCH] (mfont__lookup_fontset): If only a fallback font is found, don't use it for more than one character. --- src/fontset.c | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 1.7.10.4