Skip to content

Commit

Permalink
Make configFmtVar and add extra empty line.
Browse files Browse the repository at this point in the history
  • Loading branch information
saurtron committed Dec 11, 2024
1 parent dab42a1 commit d579731
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rts/Rendering/Fonts/CFontTexture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,9 @@ class FtLibraryHandler {
const int neededSize = ExpandEnvironmentStrings(winFontPath, nullptr, 0);
std::vector <char> osFontsDir (neededSize);
ExpandEnvironmentStrings(winFontPath, osFontsDir.data(), osFontsDir.size());

static constexpr const char* configFmt = R"(<fontconfig><dir>%s</dir><cachedir>fontcache</cachedir></fontconfig>)";
std::string configFmtVar = fmt::sprintf(configFmt, osFontsDir.data());
const std::string configFmtVar = fmt::sprintf(configFmt, osFontsDir.data());
#else
const std::string configFmtVar = R"(<fontconfig><cachedir>fontcache</cachedir></fontconfig>)";
#endif
Expand Down

0 comments on commit d579731

Please sign in to comment.