Add HB_NO_OT_SHAPE_COMPLEX_THAI_FALLBACK
authorBehdad Esfahbod <behdad@behdad.org>
Fri, 12 Apr 2019 13:35:29 +0000 (09:35 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Fri, 12 Apr 2019 13:35:29 +0000 (09:35 -0400)
Part of https://github.com/harfbuzz/harfbuzz/issues/1652

src/hb-ot-shape-complex-thai.cc

index 650c980..130ea1c 100644 (file)
@@ -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;