summaryrefslogtreecommitdiff
path: root/src/lib/font_config.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-07-09 22:53:27 +0200
committerCarl Hetherington <cth@carlh.net>2025-07-10 20:50:32 +0200
commit62c34b28567a097e8f22576e7d7891bd3dbe0ac0 (patch)
tree2a0440ed2bdb58c608582b75da6c877527dd6bda /src/lib/font_config.cc
parent2c499921a9f8615c8368d8161cb43c9a93c67311 (diff)
Replace String::compose with fmt.
sed -i "/Plural-Forms/n;/%100/n;/scanf/n;s/%[123456789]/{}/g" src/lib/*.cc src/lib/*.h src/wx/*.cc src/tools/*.cc src/lib/po/*.po src/wx/po/*.po src/tools/po/*.po test/*.cc sed -i "s/String::compose */fmt::format/g" src/lib/*.cc src/lib/*.h src/wx/*.cc src/tools/*.cc test/*.cc
Diffstat (limited to 'src/lib/font_config.cc')
-rw-r--r--src/lib/font_config.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/font_config.cc b/src/lib/font_config.cc
index 8c75aff24..410f27541 100644
--- a/src/lib/font_config.cc
+++ b/src/lib/font_config.cc
@@ -125,18 +125,18 @@ FontConfig::system_font_with_name(string name)
{
optional<boost::filesystem::path> path;
- LOG_GENERAL("Searching system for font %1", name);
+ LOG_GENERAL("Searching system for font {}", name);
auto pattern = FcNameParse(reinterpret_cast<FcChar8 const*>(name.c_str()));
auto object_set = FcObjectSetBuild(FC_FILE, nullptr);
auto font_set = FcFontList(_config, pattern, object_set);
if (font_set) {
- LOG_GENERAL("%1 candidate fonts found", font_set->nfont);
+ LOG_GENERAL("{} candidate fonts found", font_set->nfont);
for (int i = 0; i < font_set->nfont; ++i) {
auto font = font_set->fonts[i];
FcChar8* file;
if (FcPatternGetString(font, FC_FILE, 0, &file) == FcResultMatch) {
path = boost::filesystem::path(reinterpret_cast<char*>(file));
- LOG_GENERAL("Found %1", path->string());
+ LOG_GENERAL("Found {}", path->string());
break;
}
}
@@ -149,9 +149,9 @@ FontConfig::system_font_with_name(string name)
FcPatternDestroy(pattern);
if (path) {
- LOG_GENERAL("Searched system for font %1, found %2", name, path->string());
+ LOG_GENERAL("Searched system for font {}, found {}", name, path->string());
} else {
- LOG_GENERAL("Searched system for font %1; nothing found", name);
+ LOG_GENERAL("Searched system for font {}; nothing found", name);
}
return path;