From 65b5580b0432a188fac31cbdacb50ecffdd80eaf Mon Sep 17 00:00:00 2001 From: handa Date: Thu, 10 Dec 2009 06:30:08 +0000 Subject: [PATCH] (run_otf_category): Fix previous change. --- src/m17n-flt.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/m17n-flt.c b/src/m17n-flt.c index 6e77058..c0373f8 100644 --- a/src/m17n-flt.c +++ b/src/m17n-flt.c @@ -1998,6 +1998,9 @@ run_otf_category (int depth, MFLTOtfSpec *otf_spec, int from, int to, MFLTFont *font = ctx->font; int from_idx = ctx->out->used; + if (MDEBUG_FLAG () > 2) + MDEBUG_PRINT3 ("\n [FLT] %*s%s", depth, "", MSYMBOL_NAME (otf_spec->sym)); + if (! otf_spec->features[0] && ! otf_spec->features[1]) { /* Reset categories. */ @@ -2017,6 +2020,7 @@ run_otf_category (int depth, MFLTOtfSpec *otf_spec, int from, int to, ? (int) mchartable_lookup (table, g->code) : ' '); SET_CATEGORY_CODE (g, enc); + ctx->encoded[i - ctx->encoded_offset] = enc; } } return from; @@ -2025,9 +2029,6 @@ run_otf_category (int depth, MFLTOtfSpec *otf_spec, int from, int to, if (ctx->stage->category->feature_table.size == 0) return from; - if (MDEBUG_FLAG () > 2) - MDEBUG_PRINT3 ("\n [FLT] %*s%s", depth, "", MSYMBOL_NAME (otf_spec->sym)); - font->get_glyph_id (font, ctx->in, from, to); if (font->drive_otf) { -- 1.7.10.4