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