Skip to main content

Need help for showing chinese font!

2 replies [Last post]
mihayinoviki
Offline
Joined: 2006-10-17
Points: 0

code segment:

stdFont:Font = new Font("宋体", "BOLD", 55);
attribute LightsOutSplash.text_lights = Text{
content:"我爱奥运", x:125, y:70, font:stdFont, fill:white
};

upper code can not show chinese font normally. Need you help, Thanks.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
casperlw
Offline
Joined: 2008-03-28
Points: 0

currently as the String class is using Unicode 16 as the encode format, suggest you to do some code convert for the chinese string or you can simple use
"\u6211\u7231\u5965\u8fd0" to show chinese character

mihayinoviki
Offline
Joined: 2006-10-17
Points: 0

I use native2ascii tool to convert chinese string, the chinese string show correctly.
Thank you very much.