From 27b78eed5a2567e928abfd82ca50851d712abd90 Mon Sep 17 00:00:00 2001 From: Splendide Imaginarius <119545140+Splendide-Imaginarius@users.noreply.github.com> Date: Tue, 17 Oct 2023 08:10:28 +0000 Subject: [PATCH] Log missing fonts Fixes https://github.com/mkxp-z/mkxp-z/issues/43 --- src/display/font.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/display/font.cpp b/src/display/font.cpp index 98d4033e..727e542e 100644 --- a/src/display/font.cpp +++ b/src/display/font.cpp @@ -28,6 +28,8 @@ #include "util.h" #include "config.h" +#include "debugwriter.h" + #include #include @@ -252,6 +254,17 @@ void pickExistingFontName(const std::vector &names, out = names[i]; return; } + else + { + if (i == 0) + { + Debug() << "Primary font not found:" << names[i]; + } + else + { + Debug() << "Fallback font not found:" << names[i]; + } + } } out = "";