Don't do fractions if buffer is ASCII-only
diff --git a/src/hb-ot-shape.cc b/src/hb-ot-shape.cc index 30563d0..be9c438 100644 --- a/src/hb-ot-shape.cc +++ b/src/hb-ot-shape.cc
@@ -346,7 +346,8 @@ static inline void hb_ot_shape_setup_masks_fraction (hb_ot_shape_context_t *c) { - if (!c->plan->has_frac) + if (!(c->buffer->scratch_flags & HB_BUFFER_SCRATCH_FLAG_HAS_NON_ASCII) || + !c->plan->has_frac) return; hb_buffer_t *buffer = c->buffer;