Fix the offset passed to minikin::GraphemeBreak::isGraphemeBreak (#21706)
The character offset passed to isGraphemeBreak is relative to the beginning of the string (not relative to the text_start parameter). This caused bad results when searching for grapheme breaks beyond the first line of text (see https://github.com/flutter/flutter/issues/24802). This PR fixes the offset value. It also reverts the workaround applied in https://github.com/flutter/engine/pull/10063, which caused incorrect calculation of boundaries between graphemes within ligatures.
Showing
想要评论请 注册 或 登录