From 35a026c89ab4f55a962f0e837a7b7650eb3e7c31 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 30 Jul 2023 11:28:59 -0600 Subject: [PATCH] [shape] Unsafe-to-concat around fraction slash --- src/hb-ot-shape.cc | 6 ++++++ 1 file changed, 6 insertions(+) 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);