From: handa Date: Thu, 13 Dec 2007 11:44:56 +0000 (+0000) Subject: (mdebug_flag): Set to MDEBUG_FLT. X-Git-Tag: REL-1-5-0~5 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=7629d9553dc7a7d80dbe5a36606077cefcf75467;p=m17n%2Fm17n-lib.git (mdebug_flag): Set to MDEBUG_FLT. (run_rule): Check if a font has the specific glyph correctly. --- 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; }