diff options
-rw-r--r-- | src/gui/gui.cpp | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index c9f7e571..97423af6 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -64,10 +64,18 @@ Gui::Gui(Graphics *graphics): setTop(guiTop); // Set global font - guiFont = new gcn::ImageFont(TMW_DATADIR "data/graphics/gui/fixedfont.png", - " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789:@" - "!\"$%&/=?^+*#[]{}()<>_;'.,\\|-~`" - ); + try { + guiFont = new gcn::ImageFont( + TMW_DATADIR "data/graphics/gui/fixedfont.png", + " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567" + "89:@!\"$%&/=?^+*#[]{}()<>_;'.,\\|-~`" + ); + } + catch (gcn::Exception e) + { + logger.error("Unable to load fixedfont.png!"); + } + gcn::Widget::setGlobalFont(guiFont); } |