From 254a24b706ad21444ac822935cbfd62bcc388288 Mon Sep 17 00:00:00 2001 From: Philipp Sehmisch Date: Tue, 18 Nov 2008 20:09:37 +0100 Subject: Added the font file to branding.xml --- src/gui/gui.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/gui') diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 6803be65..930d4939 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -103,14 +103,16 @@ Gui::Gui(Graphics *graphics): ResourceManager *resman = ResourceManager::getInstance(); // Set global font - std::string path = resman->getPath("fonts/dejavusans.ttf"); + std::string path = resman->getPath( + branding.getValue("guiFont","fonts/dejavusans.ttf")); if (!path.empty()) { mGuiFont = new TrueTypeFont(path.c_str(), 11); } // Set speech font - path = resman->getPath("fonts/dejavusans.ttf"); + path = resman->getPath( + branding.getValue("speechFont","fonts/dejavusans.ttf")); if (!path.empty()) { speechFont = new TrueTypeFont(path.c_str(), 11); -- cgit v1.2.3-70-g09d2