Jump to content

[SOLVED] How to display chinese font in dynamicly created window?


photo

Recommended Posts

Hi,

 

I have do something like below:

 

 

window.setFont("fonts/STCAIYUN.TTF");
window.setFontSize(40);

 

 
 
The pics attached shows the problem. It can display english string, but can't display chinese string.
 
ps:the right one(purple string) was loaded from ui file, the wrong one was created from script.
 
Do I miss something else?

 

post-826-0-97552100-1369815658_thumb.jpg

post-826-0-50012600-1369815679_thumb.jpg

Link to comment
×
×
  • Create New...