summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-13 21:58:26 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-13 22:47:22 +0300
commitd131f4bdfe5ec3f462239490f69a5785abfd52bc (patch)
treecfd12d21883c8229ae22050665bca38700f0985e /src
parent325bf99748654cda2296fc60eaebc6321c09c142 (diff)
downloadmanaverse-d131f4bdfe5ec3f462239490f69a5785abfd52bc.tar.gz
manaverse-d131f4bdfe5ec3f462239490f69a5785abfd52bc.tar.bz2
manaverse-d131f4bdfe5ec3f462239490f69a5785abfd52bc.tar.xz
manaverse-d131f4bdfe5ec3f462239490f69a5785abfd52bc.zip
Add some more fonts loading logging.
Diffstat (limited to 'src')
-rw-r--r--src/gui/fonts/font.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/fonts/font.cpp b/src/gui/fonts/font.cpp
index c8f1a3561..bdc6f0495 100644
--- a/src/gui/fonts/font.cpp
+++ b/src/gui/fonts/font.cpp
@@ -133,13 +133,13 @@ Font::Font(std::string filename,
++fontCounter;
fixDirSeparators(filename);
+ logger->log("Attempt to load font: %s",
+ filename.c_str());
mFont = openFont(filename.c_str(), size);
if (!mFont)
{
-#ifdef UNITTESTS
logger->log("Error normal loading font " + filename);
-#endif // UNITTESTS
filename = "fonts/dejavusans.ttf";
mFont = openFont(fixDirSeparators(filename).c_str(), size);
@@ -203,6 +203,8 @@ TTF_Font *Font::openFont(const char *const name,
#endif // UNITTESTS
return nullptr;
}
+ logger->log("Loading physical font file: %s",
+ path.c_str());
return TTF_OpenFontIndex(path.c_str(),
size, 0);
// #endif