diff --git a/src/hb-ot-shape.cc b/src/hb-ot-shape.cc index c76775267..9c1c2a950 100644 --- a/src/hb-ot-shape.cc +++ b/src/hb-ot-shape.cc @@ -766,7 +766,13 @@ hb_ot_shape_setup_masks_fraction (const hb_ot_shape_context_t *c) HB_UNICODE_GENERAL_CATEGORY_DECIMAL_NUMBER) end++; if (start == i || end == i + 1) + { + if (start == i) + buffer->unsafe_to_concat (start, start + 1); + if (end == i + 1) + buffer->unsafe_to_concat (end - 1, end); continue; + } buffer->unsafe_to_break (start, end);