1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-12-22 23:58:48 -05:00

continued.

This commit is contained in:
Perttu Ahola 2011-01-08 18:58:40 +02:00
parent c3159160fa
commit 340de48dbf

View File

@ -1440,8 +1440,12 @@ 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;