new fonttool bug - bad description of function in helpdialog

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Slappy
Posts: 2
Joined: Tue Aug 21, 2007 7:05 pm
Location: Slovakia

new fonttool bug - bad description of function in helpdialog

Post by Slappy »

If you are using new font tool to generate your fonts and when you press help button you see a little help for tool.
The last line is: To load your font in Irrlicht simply use

Code: Select all

env->addFont("MyFont.xml");
This line is wrong, right function is getFont(); eg

Code: Select all

gui::IGUIFont* fontSmall = 
device->getGUIEnvironment()->getFont("fontSmall.xml");
It took me about half an hour to realize what I am doing wrong, so some newbies may have the same problem...

btw there is problem with creating fonts - eastern europe chars are drawn on the same line
eg:
line 1: ABCDE....K
line 2: L,M,N...
line 3: a..z and special east europe chars are on that line too, (2 or 3 chars are at same place)but I do not know how to fix it
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

Ah yes sorry about that, I'll fix it.

With the european characters, the problem seems to be that some characters go backward and overwrite the previous ones, which then causes the following ones to overwrite them again. The european characters seem to be okay by themselves, you can limit the damage by making the texture narrower. I'll try and fix it.
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
Post Reply