From 7629d9553dc7a7d80dbe5a36606077cefcf75467 Mon Sep 17 00:00:00 2001 From: handa Date: Thu, 13 Dec 2007 11:44:56 +0000 Subject: [PATCH] (mdebug_flag): Set to MDEBUG_FLT. (run_rule): Check if a font has the specific glyph correctly. --- src/m17n-flt.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/m17n-flt.c b/src/m17n-flt.c index 10c67b4..4cf4d25 100644 --- a/src/m17n-flt.c +++ b/src/m17n-flt.c @@ -244,7 +244,7 @@ MACRO-NAME ::= SYMBOL */ -static int mdebug_flag = MDEBUG_FONT_FLT; +static int mdebug_flag = MDEBUG_FLT; MSymbol Mfont, Mlayouter, Mcombining; @@ -1531,7 +1531,8 @@ run_rule (int depth, gstring.used = 1; } gstring.glyphs[0].code = code; - if (ctx->font->get_glyph_id (ctx->font, &gstring, 0, 1) < 0 + ctx->font->get_glyph_id (ctx->font, &gstring, 0, 1); + if (gstring.glyphs[0].code == 0xFFFFFFFF || ! gstring.glyphs[0].encoded) return 0; } -- 1.7.10.4