summaryrefslogtreecommitdiff
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-01-24 16:44:27 -0700
committerIra Rice <irarice@gmail.com>2009-01-24 16:44:27 -0700
commit5e1dc59411cd7973fb4208ae76d0970bd2ea87d6 (patch)
treeee805bff4d48f2393df43a395469c18c2dfe7591 /src/gui/gui.cpp
parent0b848dd3c46ee8391522f330eaf3ad0f75462e09 (diff)
downloadmana-client-5e1dc59411cd7973fb4208ae76d0970bd2ea87d6.tar.gz
mana-client-5e1dc59411cd7973fb4208ae76d0970bd2ea87d6.tar.bz2
mana-client-5e1dc59411cd7973fb4208ae76d0970bd2ea87d6.tar.xz
mana-client-5e1dc59411cd7973fb4208ae76d0970bd2ea87d6.zip
Updated DejaVuSans ttf file, as well as adding the bolded version, which
is used in a few spots. Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r--src/gui/gui.cpp21
1 files changed, 13 insertions, 8 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index 5314b9ba..fe8cae78 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -50,15 +50,9 @@ SDLInput *guiInput = 0;
gcn::Font *hitRedFont = 0;
gcn::Font *hitBlueFont = 0;
gcn::Font *hitYellowFont = 0;
-// Font used to display speech and player names
-gcn::Font *speechFont;
-// Font for displaying NPC names
-gcn::Font *npcNameFont;
-// Font for displaying mob names
-gcn::Font *mobNameFont;
-// Font for displaying GM names
-gcn::Font *gmNameFont;
+// Bolded font
+gcn::Font *boldFont = 0;
class GuiConfigListener : public ConfigListener
{
@@ -122,6 +116,17 @@ Gui::Gui(Graphics *graphics):
+ e.getMessage());
}
+ // Set bold font
+ path = resman->getPath("fonts/dejavusans-bold.ttf");
+ try {
+ boldFont = new TrueTypeFont(path, 11);
+ }
+ catch (gcn::Exception e)
+ {
+ logger->error(std::string("Unable to load dejavusans-bold.ttf: ")
+ + e.getMessage());
+ }
+
gcn::Widget::setGlobalFont(mGuiFont);
// Load hits' colourful fonts