summaryrefslogtreecommitdiff
path: root/src/gui/gui.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-01-27 10:02:51 +0100
committerIra Rice <irarice@gmail.com>2009-01-27 08:19:32 -0700
commit27bcefc3d3730199f01e9a7972326ca0f62d33af (patch)
tree1ff5c350fff7a59b8106dcbe1c6984f90617ff07 /src/gui/gui.cpp
parent9a1111ee3b13ab9cb4a20d0236022f3c744686c3 (diff)
downloadmana-27bcefc3d3730199f01e9a7972326ca0f62d33af.tar.gz
mana-27bcefc3d3730199f01e9a7972326ca0f62d33af.tar.bz2
mana-27bcefc3d3730199f01e9a7972326ca0f62d33af.tar.xz
mana-27bcefc3d3730199f01e9a7972326ca0f62d33af.zip
Made font size configurable in config file
Just change the value of 'fontSize'. This should be made configurable in the GUI though, and the GUI should then automatically adapt to the new font size.
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r--src/gui/gui.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index dda171e0..ac9b10bf 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -108,7 +108,8 @@ Gui::Gui(Graphics *graphics):
// Set global font
std::string path = resman->getPath("fonts/dejavusans.ttf");
try {
- mGuiFont = new TrueTypeFont(path, 11);
+ const int fontSize = config.getValue("fontSize", 11);
+ mGuiFont = new TrueTypeFont(path, fontSize);
}
catch (gcn::Exception e)
{