From d2ff73b256599a655e4ddedbe1ca75abdf837d23 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 19 Jun 2019 16:28:08 -0700 Subject: [PATCH] [config] Remove remaining AAT context bits if HB_NO_OT_KERN Part of https://github.com/harfbuzz/harfbuzz/issues/1652 --- src/hb-aat-layout.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/hb-aat-layout.cc b/src/hb-aat-layout.cc index e106c762..c08bb11f 100644 --- a/src/hb-aat-layout.cc +++ b/src/hb-aat-layout.cc @@ -43,8 +43,8 @@ * hb_aat_apply_context_t */ -/* Note: This context is used for kerning, even without AAT, hence the code location - * before HB_NO_AAT conditional below. */ +/* Note: This context is used for kerning, even without AAT, hence the condition. */ +#if !defined(HB_NO_AAT) || !defined(HB_NO_OT_KERN) AAT::hb_aat_apply_context_t::hb_aat_apply_context_t (const hb_ot_shape_plan_t *plan_, hb_font_t *font_, @@ -72,6 +72,8 @@ void AAT::hb_aat_apply_context_t::set_ankr_table (const AAT::ankr *ankr_table_) { ankr_table = ankr_table_; } +#endif + #ifndef HB_NO_AAT -- GitLab