Created
June 27, 2014 20:59
-
-
Save NumesSanguis/6b626b2ca19c07428a1a to your computer and use it in GitHub Desktop.
.kv doesn't support unicode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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