We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6676fd commit 24468fdCopy full SHA for 24468fd
components/fontloader/fontloader.cpp
@@ -425,7 +425,8 @@ namespace Gui
425
textureData.resize(width * height * 4);
426
bitmapFile->read(textureData.data(), width * height * 4);
427
if (!bitmapFile->good())
428
- fail(*bitmapFile, bitmapFilename, "File too small to be a valid bitmap");
+ Log(Debug::Warning) << "Font bitmap " << bitmapFilename << " ended prematurely, using partial data ("
429
+ << bitmapFile->gcount() << "/" << (width * height * 4) << " bytes)";
430
bitmapFile.reset();
431
432
MyGUI::ITexture* tex = MyGUI::RenderManager::getInstance().createTexture(bitmapFilename);
0 commit comments