Fix grapheme_position
when ligatures are present
#2196
Merged
grapheme_position
when ligatures are present
#2196