A question about the "NewFontTool"

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
xocoder
Posts: 5
Joined: Sat Nov 07, 2009 7:11 am

A question about the "NewFontTool"

Post by xocoder »

First of all.I'm so sorry that my English is bad, but still eager to get an answer, so I posted the problem here and I hope that everyone's help

I downloaded Irrlicht1.6SDK, run NewFontTool, NewFontTool generated xml and bmp files. I loaded them into the program, some text can not be displayed, so I search in the xml file, these words, but not be found. (These words many of which are commonly used word)

Some people encountered the same problem? Please tell us your solution. I would very much appreciate your help
xocoder
Posts: 5
Joined: Sat Nov 07, 2009 7:11 am

Post by xocoder »

can anyone help me ? :(
B@z
Posts: 876
Joined: Thu Jan 31, 2008 5:05 pm
Location: Hungary

Post by B@z »

how do u load the font?
you have to give the getFont(filename.xml), and then use that font.
post code and we can help
Image
Image
xocoder
Posts: 5
Joined: Sat Nov 07, 2009 7:11 am

Post by xocoder »

Thank you,B@Z :D

But the problem is , font has been loaded,and some word can not display , this is my code:

Code: Select all

gui::IGUIFont* font = device->getGUIEnvironment()->getBuiltInFont();
	gui::IGUIFont* font2 =
		device->getGUIEnvironment()->getFont("../../media/ChineseFontSample.xml");
Yeto
Posts: 2
Joined: Tue Oct 20, 2009 7:23 pm

Post by Yeto »

xocoder wrote:...and some word can not display , ...
:D maybe you used: ä ö ü ß
instead of that use: ae oe ue ss
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

For Unicode support you need to apply some patches, otherwise the char mapping can be wrong.
xocoder
Posts: 5
Joined: Sat Nov 07, 2009 7:11 am

Post by xocoder »

Thanks , hybrid and Yeto :)

To Yeto:
I'm sorry , There're some garbled words in your replay .I can't read it :(

To hybrid:
I think Irrlicht 1.6 is support the Unicode,because i find UTFString in the code of Irrlicht 1.6, does Irrlicht realy support the Unicode? or UTFString just a interface for expanding to Unicode?

and..could you post the download URL of the patches? many thanks to you :)
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Irrlicht does not support UTF in general string handling. Mayn places are already prepared to use encodings, but there's no clean way to do this so far. Please have a look at the Code snippets forum, there's a long thread about TrueType fonts and Asian character sets with all necessary patches.
xocoder
Posts: 5
Joined: Sat Nov 07, 2009 7:11 am

Post by xocoder »

Ok,thanks :)
Post Reply