From a9fb6a0c3cb1ffdbd6c18c8a4b1ad7a51ade2e1c Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Sun, 6 Jun 2021 14:40:50 +0200 Subject: [PATCH] [aat] Add start table/end table to buffer messages Related to https://github.com/harfbuzz/harfbuzz/issues/3008 --- src/hb-aat-layout.cc | 6 ++++++ src/hb-ot-layout.cc | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/hb-aat-layout.cc b/src/hb-aat-layout.cc index 63f602855..e2d4de2cc 100644 --- a/src/hb-aat-layout.cc +++ b/src/hb-aat-layout.cc @@ -249,7 +249,9 @@ hb_aat_layout_substitute (const hb_ot_shape_plan_t *plan, if (morx.has_data ()) { AAT::hb_aat_apply_context_t c (plan, font, buffer, morx_blob); + if (!buffer->message (font, "start table morx")) return; morx.apply (&c); + (void) buffer->message (font, "end table morx"); return; } @@ -258,7 +260,9 @@ hb_aat_layout_substitute (const hb_ot_shape_plan_t *plan, if (mort.has_data ()) { AAT::hb_aat_apply_context_t c (plan, font, buffer, mort_blob); + if (!buffer->message (font, "start table mort")) return; mort.apply (&c); + (void) buffer->message (font, "end table mort"); return; } } @@ -314,8 +318,10 @@ hb_aat_layout_position (const hb_ot_shape_plan_t *plan, const AAT::kerx& kerx = *kerx_blob->as (); AAT::hb_aat_apply_context_t c (plan, font, buffer, kerx_blob); + if (!buffer->message (font, "start table kerx")) return; c.set_ankr_table (font->face->table.ankr.get ()); kerx.apply (&c); + (void) buffer->message (font, "end table kerx"); } diff --git a/src/hb-ot-layout.cc b/src/hb-ot-layout.cc index 0f6728ca8..97d2971be 100644 --- a/src/hb-ot-layout.cc +++ b/src/hb-ot-layout.cc @@ -131,7 +131,9 @@ hb_ot_layout_kern (const hb_ot_shape_plan_t *plan, AAT::hb_aat_apply_context_t c (plan, font, buffer, blob); + if (!buffer->message (font, "start table kern")) return; kern.apply (&c); + (void) buffer->message (font, "end table kern"); } #endif