summaryrefslogtreecommitdiff
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r--src/gui/gui.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index 7643c01f..81e6c5df 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -43,6 +43,8 @@ WindowContainer *guiTop; // The top container
gcn::ImageFont *hitRedFont;
gcn::ImageFont *hitBlueFont;
gcn::ImageFont *hitYellowFont;
+// Font used to display speech and player names
+gcn::ImageFont *speechFont;
Gui::Gui(Graphics *graphics)
{
@@ -104,6 +106,29 @@ Gui::Gui(Graphics *graphics)
logger->error("Unable to load sansserif8.png!");
}
}
+
+ // Set speech font
+ try {
+ speechFont = new gcn::ImageFont(
+ TMW_DATADIR "data/graphics/gui/rpgfont_wider.png",
+ " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
+ "0123456789.,!?-+/():;%&`'*#=[]\"<>{}^~|_@&\\"
+ );
+ }
+ catch (gcn::Exception e)
+ {
+ try {
+ guiFont = new gcn::ImageFont(
+ "data/graphics/gui/rpgfont_wider.png",
+ " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
+ "0123456789.,!?-+/():;%&`'*#=[]\"<>{}^~|_@&\\"
+ );
+ }
+ catch (gcn::Exception e)
+ {
+ logger->error("Unable to load rpgfont_wider.png!");
+ }
+ }
gcn::Widget::setGlobalFont(guiFont);