Skip to content
Snippets Groups Projects
Commit 340de48d authored by Perttu Ahola's avatar Perttu Ahola
Browse files

continued.

parent c3159160
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment