| Issue 259: | How to display Chinese in LABEL components | |
| Back to list |
from pymt import * w = getWindow() m = MTLabel(label='欢迎') runTouchApp(w) The error is attached.
Jun 3, 2010
Project Member
#1
txprog
Jun 5, 2010
Hello,Thank you for answering my question.I really followed your suggestion。But It can not show what I want on the screen.The infomation is attached.
Jun 5, 2010
Did you have a TTF that support chinese char ? You need it, and you need to pass it
to mtlabel. for that, 2 ssolutions:
1. pass in constructor, with font_name property
2. pass in css ( css_add_sheet('label { font-name: "font.ttf"; }') )
Jun 6, 2010
Many thanks! You are so good!It solved!
Jun 6, 2010
That's cool :)
Status:
Invalid
Jul 2, 2010
(No comment was entered for this change.)
Labels:
Milestone-0.5
|