Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit 7756b38

Browse files
author
Yuncong Zhang
committed
Fix line break issue.
1 parent 389b63a commit 7756b38

File tree

7 files changed

+124
-114
lines changed

7 files changed

+124
-114
lines changed

Runtime/painting/text_span.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public void build(ParagraphBuilder builder, float textScaleFactor = 1.0f) {
3535
builder.pushStyle(this.style, textScaleFactor);
3636
}
3737
if (this.splitedText != null) {
38-
if (this.splitedText.Count == 1 && !EmojiUtils.isSurrogatePairStart(this.splitedText[0][0])) {
38+
if (this.splitedText.Count == 1 && !char.IsHighSurrogate(this.splitedText[0][0])) {
3939
builder.addText(this.splitedText[0]);
4040
}
4141
else {

0 commit comments

Comments
 (0)