commit | c70f8c331d8ce74d4504a6e90c052907b2689cb7 | [log] [tgz] |
---|---|---|
author | Julia Lavrova <jlavrova@google.com> | Thu Mar 04 16:29:06 2021 -0500 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Mon Mar 08 04:31:04 2021 +0000 |
tree | 3ee408e0439e03a9fb98839e188977d75d425f73 | |
parent | 07ee548d5bcdbd4b1f0c431c3f130b5994e5d1b5 [diff] [blame] |
Using non-breaking spaces as a hint to break too long words Change-Id: Ic88e961ea3fb08e61340895115f514c6f5dec163 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/379798 Reviewed-by: Ben Wagner <bungeman@google.com> Commit-Queue: Julia Lavrova <jlavrova@google.com>
diff --git a/modules/skshaper/src/SkUnicode_icu.cpp b/modules/skshaper/src/SkUnicode_icu.cpp index 99bb55b..ce420d8 100644 --- a/modules/skshaper/src/SkUnicode_icu.cpp +++ b/modules/skshaper/src/SkUnicode_icu.cpp
@@ -459,6 +459,10 @@ return u_isWhitespace(utf8); } + bool isSpace(SkUnichar utf8) override { + return u_isspace(utf8); + } + static bool isHardLineBreak(SkUnichar utf8) { auto property = u_getIntPropertyValue(utf8, UCHAR_LINE_BREAK); return property == U_LB_LINE_FEED || property == U_LB_MANDATORY_BREAK;