Can I type Chinese or Japanese on The MessageBox?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
kill56321
Posts: 5
Joined: Thu Oct 22, 2009 2:46 pm

Can I type Chinese or Japanese on The MessageBox?

Post by kill56321 »

Can I type Chinese or Japanese on The MessageBox?

Device->getGUIEnvironment()->addMessageBox(L"中文", L"にほんご");

I tried this on my test but nothing displayed.
How can I do?
Reiko
Posts: 105
Joined: Sun Aug 16, 2009 7:06 am
Location: Australia

Post by Reiko »

The default font doesn't support any non-ascii chars. It might be possible to make your own font that does, but I've never tried making one with all those characters before.

The problem is that what you see "in-game" isn't actually text, but rather, it shows a part of a font image, based on the letter.
CuteAlien
Admin
Posts: 10037
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Search the forum for truetype, there should be a few threads about doing international font-output. It's not yet build-in but we're working (slowly) on making it easier.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
kill56321
Posts: 5
Joined: Thu Oct 22, 2009 2:46 pm

Post by kill56321 »

Thank you very much. :D
Post Reply