From 27bcefc3d3730199f01e9a7972326ca0f62d33af Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Tue, 27 Jan 2009 10:02:51 +0100 Subject: 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. --- src/gui/gui.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.2.3-70-g09d2