mansrz / pymt

Automatically exported from code.google.com/p/pymt
0 stars 0 forks source link

How to show non-ascii character on label? #350

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
    I can't show non-ascii character on a MTLabel.For example, Chinese.

    I handle the string with Unicode, but it doesn't work. I can print the string in console, and it showes correctly. But when I use it in a MTLabel, it just show some non-sense character. Why?

    Thank you very much!

Original issue reported on code.google.com by chrome...@gmail.com on 23 Nov 2010 at 1:02

GoogleCodeExporter commented 9 years ago
I don't think that the DejaVuSans.ttf handle chinese characters. Can you try to 
use your own ttf font instead ?

Original comment by txprog on 23 Nov 2010 at 1:29

GoogleCodeExporter commented 9 years ago
I use a ttf font that supports Chinese characters.
Problem solved! Thank you very much!

Original comment by chrome...@gmail.com on 24 Nov 2010 at 1:05

GoogleCodeExporter commented 9 years ago

Original comment by txprog on 24 Nov 2010 at 2:48