mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-15 00:27:31 +00:00
GLK: More descriptive font loading error messages
This commit is contained in:
parent
7e1361e2c2
commit
364d5d35c2
@ -40,7 +40,7 @@ Screen::~Screen() {
|
||||
|
||||
void Screen::initialize() {
|
||||
if (!loadFonts())
|
||||
error("Could not load data file");
|
||||
error("Could not load fonts.dat");
|
||||
|
||||
// TODO: See if there's any better way for getting the leading and baseline
|
||||
Common::Rect r1 = _fonts[7]->getBoundingBox('o');
|
||||
@ -154,7 +154,7 @@ const Graphics::Font *Screen::loadFont(FACES face, Common::Archive *archive, dou
|
||||
};
|
||||
|
||||
if (!f.open(FILENAMES[face], *archive))
|
||||
error("Could not load font");
|
||||
error("Could not load %s from fonts file", FILENAMES[face]);
|
||||
|
||||
return Graphics::loadTTFFont(f, (int)size, Graphics::kTTFSizeModeCharacter);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user