From: Perttu Ahola Date: Sat, 8 Jan 2011 16:58:40 +0000 (+0200) Subject: continued. X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=340de48dbfc5e9aecb6ef540b3d5d3e333bbbaa4;p=zefram%2Fminetest%2Fminetest_engine.git continued. --- diff --git a/src/main.cpp b/src/main.cpp index e6445f4a..eacf08c7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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."<getFont(); - + assert(font); + u32 text_height = font->getDimension(L"Hello, world!").Height; dstream<<"text_height="<