This repository was archived by the owner on Apr 29, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,10 @@ public void build(ParagraphBuilder builder, float textScaleFactor = 1.0f) {
34
34
if ( hasStyle ) {
35
35
builder . pushStyle ( this . style , textScaleFactor ) ;
36
36
}
37
+
37
38
if ( this . splitedText != null ) {
38
- if ( this . splitedText . Count == 1 && ! char . IsHighSurrogate ( this . splitedText [ 0 ] [ 0 ] ) ) {
39
+ if ( this . splitedText . Count == 1 && ! char . IsHighSurrogate ( this . splitedText [ 0 ] [ 0 ] ) &&
40
+ ! EmojiUtils . isSingleCharEmoji ( this . splitedText [ 0 ] [ 0 ] ) ) {
39
41
builder . addText ( this . splitedText [ 0 ] ) ;
40
42
}
41
43
else {
@@ -47,7 +49,7 @@ public void build(ParagraphBuilder builder, float textScaleFactor = 1.0f) {
47
49
}
48
50
}
49
51
}
50
-
52
+
51
53
52
54
if ( this . children != null ) {
53
55
foreach ( var child in this . children ) {
@@ -69,6 +71,7 @@ public bool hasHoverRecognizer {
69
71
need = true ;
70
72
return false ;
71
73
}
74
+
72
75
return true ;
73
76
} ) ;
74
77
return need ;
@@ -186,7 +189,7 @@ public RenderComparison compareTo(TextSpan other) {
186
189
if ( ! Equals ( this . hoverRecognizer , other . hoverRecognizer ) ) {
187
190
result = RenderComparison . function > result ? RenderComparison . function : result ;
188
191
}
189
-
192
+
190
193
if ( this . style != null ) {
191
194
var candidate = this . style . compareTo ( other . style ) ;
192
195
if ( candidate > result ) {
You can’t perform that action at this time.
0 commit comments