From: handa Date: Mon, 20 Aug 2007 14:02:02 +0000 (+0000) Subject: (mfont__flt_run): Get glyph metrics before printing X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75129b4750683c59bdd75db912a28a9334580587;p=m17n%2Fm17n-lib.git (mfont__flt_run): Get glyph metrics before printing debug information. --- diff --git a/src/font-flt.c b/src/font-flt.c index bfef0ab..ed14d9e 100644 --- a/src/font-flt.c +++ b/src/font-flt.c @@ -1552,6 +1552,7 @@ mfont__flt_run (MGlyphString *gstring, int from, int to, MRealizedFace *rface) if (MDEBUG_FLAG ()) { MDEBUG_PRINT ("\n [FLT] (RESULT"); + mfont__get_metric (gstring, from, to); if (MDEBUG_FLAG () > 1) for (i = 0; from < to; from++, i++) { @@ -1561,6 +1562,7 @@ mfont__flt_run (MGlyphString *gstring, int from, int to, MRealizedFace *rface) if (i > 0 && i % 4 == 0) MDEBUG_PRINT ("\n [FLT] "); g = MGLYPH (from); + g->otf_encoded = 1; width = g->width, xoff = g->xoff, yoff = g->yoff; if (g->right_padding && g->rbearing > g->width) width = g->rbearing; @@ -1573,7 +1575,10 @@ mfont__flt_run (MGlyphString *gstring, int from, int to, MRealizedFace *rface) } else for (; from < to; from++) - MDEBUG_PRINT1 (" %04X", MGLYPH (from)->code); + { + MGLYPH (from)->otf_encoded = 1; + MDEBUG_PRINT1 (" %04X", MGLYPH (from)->code); + } MDEBUG_PRINT ("))\n"); }