I can't load the new fonts created using new IrrFontTool. When i try to load it it returns me an error message:
"The amount of upper corner pixels or lower corner pixels is == 0, font file may be corrupted."
I am using this font:
I also noticed that the font images created using old IrrFontTool have some red pixels, or something like that in the corners.
Old font:
Possible Font bug ???
I'm not stupid. I know how to load font.show the code you using to load the font.
Code: Select all
pSkin = pIrrGUI->getSkin();
pFont = pIrrGUI->getFont("font.png");
if(pFont)
pSkin->setFont(pFont);
The new loading method of fonts, is that not the following?
If the above is correct, then I am having a problem with the font being successfully loaded. The font xml file, is not a vector font, and the generated font png file is in the same directory as the xml. Is this a bug, or not fully added feature; or just user error as with most of my problems?
Code: Select all
irr::gui::IGUIFont* pFont = pGui->getFont("..\\datas\\comicsans_12px.xml");
if(pFont != NULL)
pSkin->setFont(pFont);
I've made a patch that uses the image paths in the XML relative to the XML file itself.
http://sourceforge.net/tracker/index.ph ... tid=540678
http://sourceforge.net/tracker/index.ph ... tid=540678
JeffM2501