[config] Remove remaining AAT context bits if HB_NO_OT_KERN
authorBehdad Esfahbod <behdad@behdad.org>
Wed, 19 Jun 2019 23:28:08 +0000 (16:28 -0700)
committerBehdad Esfahbod <behdad@behdad.org>
Wed, 19 Jun 2019 23:28:27 +0000 (16:28 -0700)
Part of https://github.com/harfbuzz/harfbuzz/issues/1652

src/hb-aat-layout.cc

index e106c76..c08bb11 100644 (file)
@@ -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