From 2cea796b75702d4fd433da2f4733810cf3dd3cfa Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Mon, 30 Mar 2020 16:04:17 +0100 Subject: [PATCH] Instrument entering GSUB/GPOS tables --- src/hb-ot-layout.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hb-ot-layout.cc b/src/hb-ot-layout.cc index bc285295b..58ec8ed95 100644 --- a/src/hb-ot-layout.cc +++ b/src/hb-ot-layout.cc @@ -1981,13 +1981,17 @@ inline void hb_ot_map_t::apply (const Proxy &proxy, void hb_ot_map_t::substitute (const hb_ot_shape_plan_t *plan, hb_font_t *font, hb_buffer_t *buffer) const { GSUBProxy proxy (font->face); + if (!buffer->message (font, "start table GSUB")) return; apply (proxy, plan, font, buffer); + (void)buffer->message (font, "end table GSUB"); } void hb_ot_map_t::position (const hb_ot_shape_plan_t *plan, hb_font_t *font, hb_buffer_t *buffer) const { GPOSProxy proxy (font->face); + if (!buffer->message (font, "start table GPOS")) return; apply (proxy, plan, font, buffer); + (void)buffer->message (font, "end table GPOS"); } void