Commit e81cc013 authored by bitplane's avatar bitplane

Changed error message in font loader, if no regions are found users are given...

Changed error message in font loader, if no regions are found users are given a hint to load the XML file instead.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1198 dfc29bdd-3216-0410-991c-e03cc46cb475
parent e66d6fa7
...@@ -254,7 +254,7 @@ bool CGUIFont::loadTexture(video::IImage* image, const c8* name) ...@@ -254,7 +254,7 @@ bool CGUIFont::loadTexture(video::IImage* image, const c8* name)
// output warnings // output warnings
if (!lowerRightPositions || !SpriteBank->getSprites().size()) if (!lowerRightPositions || !SpriteBank->getSprites().size())
os::Printer::log("The amount of upper corner pixels or lower corner pixels is == 0, font file may be corrupted.", ELL_ERROR); os::Printer::log("Either no upper or lower corner pixels in the font file. If this font was made using the new font tool, please load the XML file instead. If not, the font may be corrupted.", ELL_ERROR);
else else
if (lowerRightPositions != (s32)SpriteBank->getPositions().size()) if (lowerRightPositions != (s32)SpriteBank->getPositions().size())
os::Printer::log("The amount of upper corner pixels and the lower corner pixels is not equal, font file may be corrupted.", ELL_ERROR); os::Printer::log("The amount of upper corner pixels and the lower corner pixels is not equal, font file may be corrupted.", ELL_ERROR);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment