continued.
This commit is contained in:
parent
c3159160fa
commit
340de48dbf
|
@ -1440,9 +1440,13 @@ int main(int argc, char *argv[])
|
||||||
gui::IGUIFont* font = guienv->getFont(porting::getDataPath("fontlucida.png").c_str());
|
gui::IGUIFont* font = guienv->getFont(porting::getDataPath("fontlucida.png").c_str());
|
||||||
if(font)
|
if(font)
|
||||||
skin->setFont(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
|
// If font was not found, this will get us one
|
||||||
font = skin->getFont();
|
font = skin->getFont();
|
||||||
|
assert(font);
|
||||||
|
|
||||||
u32 text_height = font->getDimension(L"Hello, world!").Height;
|
u32 text_height = font->getDimension(L"Hello, world!").Height;
|
||||||
dstream<<"text_height="<<text_height<<std::endl;
|
dstream<<"text_height="<<text_height<<std::endl;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue