diff --git a/src/hb-ot-layout.hh b/src/hb-ot-layout.hh index 938b9a696..7b5507449 100644 --- a/src/hb-ot-layout.hh +++ b/src/hb-ot-layout.hh @@ -386,8 +386,10 @@ _hb_grapheme_group_func (const hb_glyph_info_t& a HB_UNUSED, static inline void _hb_ot_layout_reverse_graphemes (hb_buffer_t *buffer) { + // MONOTONE_GRAPHEMES was already applied and is taken care of by _hb_grapheme_group_func. + // So we just check for MONOTONE_CHARACTERS here. buffer->reverse_groups (_hb_grapheme_group_func, - HB_BUFFER_CLUSTER_LEVEL_IS_MONOTONE (buffer->cluster_level)); + buffer->cluster_level == HB_BUFFER_CLUSTER_LEVEL_MONOTONE_CHARACTERS); } static inline bool