int from_idx = gstring->used;
if (MDEBUG_FLAG () > 2)
+#if 0
MDEBUG_PRINT4 ("\n [FLT] %*s(OTF %s,%s)", depth, "",
(! otf_cmd->features[MFONT_OTT_GSUB].str ? ""
: otf_cmd->features[MFONT_OTT_GSUB].str),
(! otf_cmd->features[MFONT_OTT_GPOS].str ? ""
: otf_cmd->features[MFONT_OTT_GPOS].str));
+#else
+ MDEBUG_PRINT3 ("\n [FLT] %*s:otf=%s", depth, "",
+ MSYMBOL_NAME (otf_cmd->otf));
+#endif
to = mfont__ft_drive_otf (gstring, from, to, otf_cmd);
if (ctx->cluster_begin_idx)
for (; from_idx < gstring->used; from_idx++)
APPEND_GLYPH (gstring, g);
UPDATE_CLUSTER_RANGE (ctx, g);
if (MDEBUG_FLAG () > 2)
- MDEBUG_PRINT3 ("\n [FLT] %*s(COPY 0x%X)", depth, "", g.code);
+ {
+ if (g.type == GLYPH_PAD)
+ MDEBUG_PRINT2 ("\n [FLT] %*s(COPY |)", depth, "");
+ else
+ MDEBUG_PRINT3 ("\n [FLT] %*s(COPY 0x%X)", depth, "", g.code);
+ }
ctx->code_offset = ctx->combining_code = ctx->left_padding = 0;
return (from + 1);
}
ctx.code_offset = ctx.combining_code = ctx.left_padding = 0;
if (MDEBUG_FLAG () > 2)
{
- MDEBUG_PRINT2 ("\n [FLT] (STAGE %d \"%s\"", stage_idx, ctx.encoded);
- if (ctx.encoded_offset < to)
+ MDEBUG_PRINT2 ("\n [FLT] (STAGE %d \"%s\"", stage_idx,
+ ctx.encoded + from - ctx.encoded_offset);
+ fprintf (stderr, " (");
+ for (i = from; i < to ; i++)
{
- if (gstring->glyphs[ctx.encoded_offset].type == GLYPH_PAD)
- fprintf (stderr, " (|");
+ if (gstring->glyphs[i].type == GLYPH_PAD)
+ fprintf (stderr, "%*s|", (i > from), "");
else
- fprintf (stderr, " (%X", gstring->glyphs[ctx.encoded_offset].code);
- for (i = ctx.encoded_offset + 1; i < to; i++)
- {
- if (gstring->glyphs[i].type == GLYPH_PAD)
- fprintf (stderr, " |");
- else
- fprintf (stderr, " %X", gstring->glyphs[i].code);
- }
- fprintf (stderr, ")");
+ fprintf (stderr, "%*s%04X", (i > from), "",
+ gstring->glyphs[i].code);
}
+ fprintf (stderr, ")");
}
gidx = gstring->used;