From 4d86b85e69d25382a06b3f19f4a84154ec85361d Mon Sep 17 00:00:00 2001 From: Raph Levien Date: Tue, 21 Jul 2015 05:31:11 +0000 Subject: [PATCH] Revert "Allow clusters to start with zero-width characters" This reverts commit 1b3bfb262437625ca4e6efb93b7b90543d6b5ec3. Bug: 22589743 Bug: 22121742 Change-Id: I7b482ffb8a0ee174ddc804aa890de45bdbd758e3 --- engine/src/flutter/libs/minikin/Measurement.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/engine/src/flutter/libs/minikin/Measurement.cpp b/engine/src/flutter/libs/minikin/Measurement.cpp index a7bc64bea1..0b68ac5f64 100644 --- a/engine/src/flutter/libs/minikin/Measurement.cpp +++ b/engine/src/flutter/libs/minikin/Measurement.cpp @@ -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