diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-03-13 21:58:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-03-13 22:47:22 +0300 |
commit | d131f4bdfe5ec3f462239490f69a5785abfd52bc (patch) | |
tree | cfd12d21883c8229ae22050665bca38700f0985e /src/gui | |
parent | 325bf99748654cda2296fc60eaebc6321c09c142 (diff) | |
download | mv-d131f4bdfe5ec3f462239490f69a5785abfd52bc.tar.gz mv-d131f4bdfe5ec3f462239490f69a5785abfd52bc.tar.bz2 mv-d131f4bdfe5ec3f462239490f69a5785abfd52bc.tar.xz mv-d131f4bdfe5ec3f462239490f69a5785abfd52bc.zip |
Add some more fonts loading logging.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/fonts/font.cpp | 6 |
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 |