diff options
Diffstat (limited to 'src/config.cpp')
-rw-r--r-- | src/config.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/config.cpp b/src/config.cpp index 844bf39..7f0af00 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -22,6 +22,7 @@ namespace game { float VOLUME_SFX; std::string xmlFolder; + std::string fontFamily; void read(void) { xml.LoadFile("config/settings.xml"); @@ -49,8 +50,8 @@ namespace game { if (xmlFolder.empty()) xmlFolder = "xml/"; - ui::initFonts(); - ui::setFontFace(xml.FirstChildElement("font")->Attribute("path")); + // FONT SETUP + fontFamily = xml.FirstChildElement("font")->Attribute("path"); if (xml.FirstChildElement("debug")) ui::debug = ui::posFlag = true; |