mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Merge "Revert "Allow clusters to start with zero-width characters"" into mnc-dev
This commit is contained in:
commit
5ba60b1c25
@ -41,8 +41,7 @@ static float getRunAdvance(Layout& layout, const uint16_t* buf, size_t layoutSta
|
||||
clusterWidth = charAdvance;
|
||||
}
|
||||
}
|
||||
if (offset < start + count && layout.getCharAdvance(offset - layoutStart) == 0.0f &&
|
||||
!GraphemeBreak::isGraphemeBreak(buf, start, count, offset)) {
|
||||
if (offset < start + count && layout.getCharAdvance(offset - layoutStart) == 0.0f) {
|
||||
// In the middle of a cluster, distribute width of cluster so that each grapheme cluster
|
||||
// gets an equal share.
|
||||
// TODO: get caret information out of font when that's available
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user