Handle missing system font by clearing font bytes and logging an error

This commit is contained in:
w1naenator 2025-11-08 13:27:18 +02:00
parent 9287fb31bf
commit 0b9f941e63

View File

@ -302,8 +302,10 @@ static void LoadSystemFontBlob() {
return;
}
}
const auto fallback = std::filesystem::current_path() / kSystemFontFileName;
LoadFontFromPath(fallback);
g_system_font_bytes.clear();
g_system_font_available = false;
LOG_ERROR(Lib_Font, "SystemFace: configured font '{}' missing; no fallback available",
configured_path.string());
}
static bool EnsureSystemFontBlob() {