Skip to content

Instantly share code, notes, and snippets.

@NumesSanguis
Created June 27, 2014 20:59
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/6b626b2ca19c07428a1a to your computer and use it in GitHub Desktop.
Save NumesSanguis/6b626b2ca19c07428a1a 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):
pass
class TestWidget(App):
def build(self):
return ScatterTextWidget()
if __name__ == "__main__":
TestWidget().run()
<ScatterTextWidget>:
Label:
# This doesn't work:
text: "愛 あい"
# This font should be in Windows already, so you have to copy that file to this folder:
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