From fe0018f7ef804acefa729e888f5a9935e571079d Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 12 Apr 2019 09:35:29 -0400 Subject: [PATCH] Add HB_NO_OT_SHAPE_COMPLEX_THAI_FALLBACK Part of https://github.com/harfbuzz/harfbuzz/issues/1652 --- src/hb-ot-shape-complex-thai.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hb-ot-shape-complex-thai.cc b/src/hb-ot-shape-complex-thai.cc index 650c9800a..130ea1c98 100644 --- a/src/hb-ot-shape-complex-thai.cc +++ b/src/hb-ot-shape-complex-thai.cc @@ -218,6 +218,10 @@ do_thai_pua_shaping (const hb_ot_shape_plan_t *plan HB_UNUSED, hb_buffer_t *buffer, hb_font_t *font) { +#if defined(HB_NO_OT_SHAPE_COMPLEX_THAI_FALLBACK) + return; +#endif + thai_above_state_t above_state = thai_above_start_state[NOT_CONSONANT]; thai_below_state_t below_state = thai_below_start_state[NOT_CONSONANT]; unsigned int base = 0;