Skip to content

Instantly share code, notes, and snippets.

@NumesSanguis
Created June 27, 2014 21:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NumesSanguis/7280461d90fe6a343b84 to your computer and use it in GitHub Desktop.
Save NumesSanguis/7280461d90fe6a343b84 to your computer and use it in GitHub Desktop.
.kv doesn't support unicode
from kivy.app import App
from kivy.uix.label import Label
from kivy.uix.boxlayout import BoxLayout
class ScatterTextWidget(BoxLayout):
txt = "愛 あい"
class TestWidget(App):
def build(self):
return ScatterTextWidget()
if __name__ == "__main__":
TestWidget().run()
<ScatterTextWidget>:
Label:
text: root.txt
font_name: 'TakaoPMincho.ttf'
font_size: sp(48)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment