continued.
authorPerttu Ahola <celeron55@gmail.com>
Sat, 8 Jan 2011 16:58:40 +0000 (18:58 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Sat, 8 Jan 2011 16:58:40 +0000 (18:58 +0200)
src/main.cpp

index e6445f4a3bd7c4e0ef52ea121e7dda483e7261b1..eacf08c757d226482a4a518302964f8744da26a2 100644 (file)
@@ -1440,9 +1440,13 @@ int main(int argc, char *argv[])
        gui::IGUIFont* font = guienv->getFont(porting::getDataPath("fontlucida.png").c_str());\r
        if(font)\r
                skin->setFont(font);\r
+       else\r
+               dstream<<"WARNING: Font file was not found."\r
+                               " Using default font."<<std::endl;\r
        // If font was not found, this will get us one\r
        font = skin->getFont();\r
-       \r
+       assert(font);\r
+\r
        u32 text_height = font->getDimension(L"Hello, world!").Height;\r
        dstream<<"text_height="<<text_height<<std::endl;\r
 \r