Corner pixels error when trying to load font file

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
juantar
Posts: 9
Joined: Mon Apr 10, 2006 4:02 pm

Corner pixels error when trying to load font file

Post by juantar »

I created a font bmp file using the Font tool shipped with irrlicht 1.3. When I tried to set the font to that file, I get "The amount of upper corner pixels or lower corner pixels is == 0, font file may be corrupted" and thus it does not use my font but instead uses the default irrlicht font. This is the Font loading code:

IGUISkin* skin = guienv->getSkin();
IGUIFont* font = guienv->getFont("myComic0.bmp");
if (font)
skin->setFont(font);

The file (myComic0.bmp) is in the working dir of the application, so it should find it. The file is 256x256 px.
http://jpttoolsandsolutions.com/images/myComic0.bmp :
Image

Can anybody help? What is wrong?
--------------------------------------------------------
juantar
tarpri.com
Post Reply