From 340de48dbfc5e9aecb6ef540b3d5d3e333bbbaa4 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sat, 8 Jan 2011 18:58:40 +0200 Subject: [PATCH] continued. --- src/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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="<