SDL_TTF with asian characters

I’m trying to use SDL_TTF to render asian characters. However, I’m
getting an empty (though not zero-sized) rectangle instead of the text.
This is using the test program included with SDL_TTF and a font with
chinese chraracters.

I can’t figure out what am I doing wrong, since SDL doesn’t give any
error. Is there some special trick I’m not doing? Does anyone have a
working example?

Thanks,
–Gabriel

I’m not sure it’s the best /example/, since it’s no doubt pretty cluttered
in there, but Tux Paint supports Japanese, Chinese (Trad & Simpl), Korean.

http://www.newbreedsoftware.com/tuxpaint/

You can browse the code in CVS using the web interface at SourceForge:

http://cvs.sourceforge.net/viewcvs.py/tuxpaint/tuxpaint/src/

Enjoy!On Thu, Apr 21, 2005 at 01:41:15PM -0300, Gabriel wrote:

I can’t figure out what am I doing wrong, since SDL doesn’t give any
error. Is there some special trick I’m not doing? Does anyone have a
working example?


-bill!
bill at newbreedsoftware.com Tonight’s Forecast: Dark. Continued darkness
http://newbreedsoftware.com/ until widely scattered light in the morning.

I’d start with checking how the chinese characters are being represented in
your input string. Are they UTF8, unicode, or some ASCII codepage?On Thursday 21 April 2005 10:41, Gabriel wrote:

I can’t figure out what am I doing wrong, since SDL doesn’t give any
error. Is there some special trick I’m not doing? Does anyone have a
working example?