Here is an example on Windows, using a windows font that support emojis. I have use 2 different styles of literals. On windows pressing the windows key and ‘.’ Brings up and emoji input. I can type these into the text input, or use it to type emojis into my code editor.
from kivy.app import App
from kivy.lang import Builder
kv = """
BoxLayout:
TextInput:
text: 'Test Emoji: ' + '\N{grinning face}' + '\N{Crying Face}' + '😃😎'
font_name: 'seguiemj'
font_size: 40
"""
class EmojiApp(App):
def build(self):
return Builder.load_string(kv)
EmojiApp().run()
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/3a97c140-3ddb-4b20-a4a9-68341f7c2cd2n%40googlegroups.com.