DescriptionBreak runs by clusters rather than iteration over code points
In some languages, the current logic (iteration over code
points and then get the glyphs by CharRangeToGlyphRange)
makes wrong effect, because both a character and its
diacritic marks can point to the same glyph range and
it misunderstands the width of the word for wrapping.
This CL changes the iteration logic for clusters so that
it skips the code points for the diacritic marks.
BUG=470073
R=msw@chromium.org, ckocagil@chromium.org
TEST=the new test case covers
Committed: https://crrev.com/043e7d282111711173853dcf36b258553352488b
Cr-Commit-Position: refs/heads/master@{#322316}
Patch Set 1 #
Total comments: 2
Patch Set 2 : #Patch Set 3 : GetClusterAt() #
Total comments: 9
Patch Set 4 : comments addressed #Patch Set 5 : win/mac test fix #Messages
Total messages: 16 (4 generated)
|