From 0b9f941e63e6b501788d7e20b36d0532efe3d4e1 Mon Sep 17 00:00:00 2001 From: w1naenator Date: Sat, 8 Nov 2025 13:27:18 +0200 Subject: [PATCH] Handle missing system font by clearing font bytes and logging an error --- src/core/libraries/font/font.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/libraries/font/font.cpp b/src/core/libraries/font/font.cpp index fbf50ac8e..5d2468257 100644 --- a/src/core/libraries/font/font.cpp +++ b/src/core/libraries/font/font.cpp @@ -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() {