commit | edfc6be4a0362efa5c1d39f4792a28b5726c3ce5 | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Wed Apr 10 15:53:48 2019 -0400 |
committer | Behdad Esfahbod <behdad@behdad.org> | Wed Apr 10 16:10:54 2019 -0400 |
tree | 346e0b0a66b513670047318cbd378e53a7b4285e | |
parent | 4d31662b5da20790f6f860cec8f5fdabf48210f0 [diff] |
[arabic] Disable fallback shaping if HB_NO_OT_SHAPE_COMPLEX_ARABIC_FALLBACK defined Part of https://github.com/harfbuzz/harfbuzz/issues/1652
diff --git a/src/hb-ot-shape-complex-arabic-fallback.hh b/src/hb-ot-shape-complex-arabic-fallback.hh index dad5100..ecf3450 100644 --- a/src/hb-ot-shape-complex-arabic-fallback.hh +++ b/src/hb-ot-shape-complex-arabic-fallback.hh
@@ -91,7 +91,6 @@ hb_sorted_array (glyphs, num_glyphs), hb_array (substitutes, num_glyphs)); c.end_serialize (); - /* TODO sanitize the results? */ return ret ? c.copy<OT::SubstLookup> () : nullptr; }
diff --git a/src/hb-ot-shape-complex-arabic.cc b/src/hb-ot-shape-complex-arabic.cc index bdebde0..4daf2a6 100644 --- a/src/hb-ot-shape-complex-arabic.cc +++ b/src/hb-ot-shape-complex-arabic.cc
@@ -383,6 +383,10 @@ hb_font_t *font, hb_buffer_t *buffer) { +#if defined(HB_NO_OT_SHAPE_COMPLEX_ARABIC_FALLBACK) + return; +#endif + const arabic_shape_plan_t *arabic_plan = (const arabic_shape_plan_t *) plan->data; if (!arabic_plan->do_fallback)