My favorites | Sign in
Project Home Downloads Issues
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 259: How to display Chinese in LABEL components
  Back to list
Status:  Invalid
Owner:  txprog
Closed:  Jun 2010


 
Reported by sth20012...@gmail.com, Jun 3, 2010
from pymt import *
w = getWindow()
m = MTLabel(label='欢迎')
runTouchApp(w)

The error is attached.
ww.jpg
35.2 KB   View   Download
Jun 3, 2010
Project Member #1 txprog
Did you test what i've told you on the forum ?

from pymt import *
w = getWindow()
m = MTLabel(label=u'欢迎')
runTouchApp(w)

Jun 5, 2010
#2 sth20012...@gmail.com
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.
11.jpg
13.0 KB   View   Download
Jun 5, 2010
Project Member #3 txprog
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
#4 sth20012...@gmail.com
Many thanks! You are so good!It solved!
Jun 6, 2010
Project Member #5 txprog
That's cool :)
Status: Invalid
Jul 2, 2010
Project Member #6 txprog
(No comment was entered for this change.)
Labels: Milestone-0.5

Powered by Google Project Hosting