Trace normalization and preprocessing stages

This commit is contained in:
Simon Cozens 2020-09-17 14:27:31 +01:00
parent b50099bff2
commit 8b3b835a0a

View File

@ -851,7 +851,10 @@ hb_ot_substitute_default (const hb_ot_shape_context_t *c)
HB_BUFFER_ALLOCATE_VAR (buffer, glyph_index);
_hb_ot_shape_normalize (c->plan, buffer, c->font);
if (buffer->message(c->font, "begin normalize")) {
_hb_ot_shape_normalize (c->plan, buffer, c->font);
buffer->message(c->font, "end normalize");
}
hb_ot_shape_setup_masks (c);
@ -896,8 +899,11 @@ hb_ot_substitute_post (const hb_ot_shape_context_t *c)
hb_aat_layout_remove_deleted_glyphs (c->buffer);
#endif
if (c->plan->shaper->postprocess_glyphs)
if (c->plan->shaper->postprocess_glyphs &&
c->buffer->message(c->font, "begin postprocess")) {
c->plan->shaper->postprocess_glyphs (c->plan, c->buffer, c->font);
(void)c->buffer->message(c->font, "end postprocess");
}
}
@ -1120,8 +1126,11 @@ hb_ot_shape_internal (hb_ot_shape_context_t *c)
hb_ensure_native_direction (c->buffer);
if (c->plan->shaper->preprocess_text)
if (c->plan->shaper->preprocess_text &&
c->buffer->message(c->font, "begin preprocess")) {
c->plan->shaper->preprocess_text (c->plan, c->buffer, c->font);
(void)c->buffer->message(c->font, "end preprocess");
}
hb_ot_substitute_pre (c);
hb_ot_position (c);