summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/gui.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index 83682ad3..f38bb1b4 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -89,7 +89,17 @@ Gui::Gui(Graphics *graphics)
}
catch (gcn::Exception e)
{
+ try {
+ guiFont = new gcn::ImageFont(
+ "data/graphics/gui/fixedfont.png",
+ " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567"
+ "89:@!\"$%&/=?^+*#[]{}()<>_;'.,\\|-~`ψε"
+ );
+ }
+ catch (gcn::Exception e)
+ {
logger->error("Unable to load fixedfont.png!");
+ }
}
gcn::Widget::setGlobalFont(guiFont);
@@ -108,7 +118,21 @@ Gui::Gui(Graphics *graphics)
}
catch (gcn::Exception e)
{
+ try {
+ hitRedFont = new gcn::ImageFont(
+ "data/graphics/gui/hits_red.png",
+ "0123456789");
+ hitBlueFont = new gcn::ImageFont(
+ "data/graphics/gui/hits_blue.png",
+ "0123456789");
+ hitYellowFont = new gcn::ImageFont(
+ "data/graphics/gui/hits_yellow.png",
+ "mis");
+ }
+ catch (gcn::Exception e)
+ {
logger->error("Unable to load colored hits' fonts!");
+ }
}
}