Merge "Fix cursor position for ligatures and group of glyphs." into devel/master