diff --git a/rts/Rendering/Fonts/CFontTexture.cpp b/rts/Rendering/Fonts/CFontTexture.cpp index f7cb61a1ad..a638eef365 100644 --- a/rts/Rendering/Fonts/CFontTexture.cpp +++ b/rts/Rendering/Fonts/CFontTexture.cpp @@ -150,14 +150,12 @@ class FtLibraryHandler { // and system fonts included. also linux actually has system config files that can be used by fontconfig. #ifdef _WIN32 - // fontconfig will resolve the special keys here. std::array osFontsDir; ExpandEnvironmentStrings("%WINDIR%\\fonts", osFontsDir.data(), osFontsDir.size()); // expands %HOME% etc. static constexpr const char* configFmt = R"(%sfontcache)"; std::string configFmtVar = fmt::sprintf(configFmt, osFontsDir.data()); #else - static constexpr const char* configFmt = R"(fontcache)"; - std::string configFmtVar = configFmt; + const std::string configFmtVar = R"(fontcache)"; #endif #ifdef _WIN32