Hello, I tried adding some japanese text to Irrlicht gui display but soon found that the addStaticText function cannot display the text properly, resulting in "blocky squares" displayed for each character.
The code look like this:
Code: Select all
wchar_t* text = L"オフィス翻訳";
guienv->addStaticText(text, core::rect<int>(20,20,200,200), true, true, container);
But the equivalent text displayed correctly with setWindowsCaption function:
Code: Select all
wchar_t captiontext[255];
swprintf(captiontext, 255, L"オフィス翻訳");
device->setWindowCaption(captiontext);
I had tried using the swprintf/stringw function and many other ways to handle the text, e.g. saving the cpp files with different encodings, re-compiled the engine with different locale and language settings, etc, but the displayed result are still "blocky squares". Anyone experienced similar behaviour? Any idea for solving this problem? Thanks.