aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index e6445f4a3..eacf08c75 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1440,9 +1440,13 @@ int main(int argc, char *argv[])
gui::IGUIFont* font = guienv->getFont(porting::getDataPath("fontlucida.png").c_str());
if(font)
skin->setFont(font);
+ else
+ dstream<<"WARNING: Font file was not found."
+ " Using default font."<<std::endl;
// If font was not found, this will get us one
font = skin->getFont();
-
+ assert(font);
+
u32 text_height = font->getDimension(L"Hello, world!").Height;
dstream<<"text_height="<<text_height<<std::endl;