From: handa Date: Mon, 28 Feb 2005 12:37:56 +0000 (+0000) Subject: (mfont__flt_run): Add resulting code sequence in X-Git-Tag: REL-1-3-0~383 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=ee113166fa5b990effc16cfa8e04928dbeb41c7f;p=m17n%2Fm17n-lib.git (mfont__flt_run): Add resulting code sequence in debug info. --- diff --git a/src/font-flt.c b/src/font-flt.c index c6a7e5b..b4fdc69 100644 --- a/src/font-flt.c +++ b/src/font-flt.c @@ -1471,8 +1471,6 @@ mfont__flt_run (MGlyphString *gstring, int from, int to, MRealizedFace *rface) ctx.match_indices[1] = to; } - MDEBUG_PRINT (")\n"); - if (from == to) { /* Somehow there's no glyph contributing to characters between @@ -1533,6 +1531,25 @@ mfont__flt_run (MGlyphString *gstring, int from, int to, MRealizedFace *rface) latest = glyphs[i]; } } + MDEBUG_PRINT ("\n [FLT] (RESULT ("); + if (mdebug__flag & mdebug_mask + && ctx.encoded_offset < to) + { + if (gstring->glyphs[from].type == GLYPH_PAD) + fprintf (stderr, "|"); + else + fprintf (stderr, "%X", gstring->glyphs[from].code); + for (from++; from < to; from++) + { + if (gstring->glyphs[from].type == GLYPH_PAD) + fprintf (stderr, " |"); + else + fprintf (stderr, " %X", gstring->glyphs[from].code); + } + fprintf (stderr, "))"); + } + MDEBUG_PRINT (")\n"); + return to; }