From 5e1dc59411cd7973fb4208ae76d0970bd2ea87d6 Mon Sep 17 00:00:00 2001 From: Ira Rice Date: Sat, 24 Jan 2009 16:44:27 -0700 Subject: Updated DejaVuSans ttf file, as well as adding the bolded version, which is used in a few spots. Signed-off-by: Ira Rice --- src/gui/gui.cpp | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'src/gui/gui.cpp') 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 -- cgit v1.2.3-70-g09d2