Skip to content

Commit ac5440d

Browse files
committed
Fix TextBox Support for emoji
1 parent 4f9b4cd commit ac5440d

File tree

2 files changed

+107
-59
lines changed

2 files changed

+107
-59
lines changed

osu.Framework/Graphics/UserInterface/BasicTextBox.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using osu.Framework.Graphics.Shapes;
77
using osu.Framework.Graphics.Sprites;
88
using osu.Framework.Input.Events;
9+
using osu.Framework.Text;
910
using osuTK;
1011
using osuTK.Graphics;
1112

@@ -93,7 +94,7 @@ protected override void OnFocus(FocusEvent e)
9394
background.FadeColour(BackgroundFocused, 200, Easing.Out);
9495
}
9596

96-
protected override Drawable GetDrawableCharacter(char c) => new FallingDownContainer
97+
protected override Drawable GetDrawableCharacter(Grapheme c) => new FallingDownContainer
9798
{
9899
AutoSizeAxes = Axes.Both,
99100
Child = new SpriteText { Text = c.ToString(), Font = FrameworkFont.Condensed.With(size: FontSize) }

0 commit comments

Comments
 (0)