Ecere SDK/eC Forums http://ecere.org/community/ Print view |
|
[solved]HiraganaCube sample http://ecere.org/community/viewtopic.php?f=5&t=174 |
Page 1 of 1 |
Author: | samsam598 [ Tue Aug 30, 2011 2:51 am ] |
Post subject: | [solved]HiraganaCube sample |
Greetings, I was wondering how to change the character to Chinese of the subjected sample?I tried to use uint16*,UTF8toUTF16 function but it desn't show the characters properly. Code: Select all
Regards, Sam |
Author: | jerome [ Tue Aug 30, 2011 9:36 am ] |
Post subject: | Re: HiraganaCube sample |
Sam, This goes through Ecere API, so UTF-8 is expected. char* hiragana[6]={"你","好","大","傻","瓜","蛋"}; This will work, but you will need a font that contains these characters (FreeSans doesn't). You might need to play with the size and centering as well. Changing these lines works for me: Code: Select all
Code: Select all
Code: Select all
Jerome |
Author: | samsam598 [ Tue Aug 30, 2011 7:59 pm ] |
Post subject: | Re: HiraganaCube sample |
Thanks! |
All times are UTC-05:00 | Page 1 of 1 |
Powered by phpBB® Forum Software © phpBB Limited |