Join GitHub today
Glyph count used a grapheme cluster count in text input hit testing #23399
From #23272 (comment)
This number ultimately comes from here:
… where is is computed as a number of glyphs.
Grapheme clusters only map to glyphs one to one in simple cases. This could cause the cursor to end up at an incorrect position, far from where click cursor was.
Instead, the gfx code should map positions in the glyph sequence back to UTF-8 positions in the original Unicode text, and