Add HB_NO_OT_SHAPE_COMPLEX_VOWEL_CONSTRAINTS
authorBehdad Esfahbod <behdad@behdad.org>
Thu, 11 Apr 2019 21:54:38 +0000 (17:54 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Thu, 11 Apr 2019 23:42:05 +0000 (19:42 -0400)
Part of https://github.com/harfbuzz/harfbuzz/issues/1652

src/hb-ot-shape-complex-vowel-constraints.cc

index e4cf645..2eb313a 100644 (file)
@@ -34,6 +34,9 @@ _hb_preprocess_text_vowel_constraints (const hb_ot_shape_plan_t *plan HB_UNUSED,
                                       hb_buffer_t              *buffer,
                                       hb_font_t                *font HB_UNUSED)
 {
+#if defined(HB_NO_OT_SHAPE_COMPLEX_VOWEL_CONSTRAINTS)
+  return;
+#endif
   if (buffer->flags & HB_BUFFER_FLAG_DO_NOT_INSERT_DOTTED_CIRCLE)
     return;