This commit is contained in:
jpirnay
2026-05-15 10:06:09 +02:00
parent 2e1db2ec68
commit 85749b9991
+3 -1
View File
@@ -197,7 +197,9 @@ void ensureSdFontLoadedForPath(const char* path) {
ensureSdFontLoaded();
return;
}
const bool isTxtMd = FsHelpers::hasTxtExtension(path) || FsHelpers::hasMarkdownExtension(path);
const std::string_view filePath(path);
const bool isTxtMd = static_cast<bool (*)(std::string_view)>(FsHelpers::hasTxtExtension)(filePath) ||
static_cast<bool (*)(std::string_view)>(FsHelpers::hasMarkdownExtension)(filePath);
if (isTxtMd) {
sdFontSystem.ensureLoaded(renderer, SETTINGS.txtSdFontFamilyName, SETTINGS.txtFontSize);
} else {