From 128ed7555d1acd30cefea75db4f95f30e1d5511e Mon Sep 17 00:00:00 2001 From: Liangliang Nan Date: Tue, 13 Feb 2024 18:16:50 +0100 Subject: [PATCH] show a warning if loading the font file failed --- 3rd_party/imgui/imgui_draw.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/3rd_party/imgui/imgui_draw.cpp b/3rd_party/imgui/imgui_draw.cpp index 7e733f6..31029db 100644 --- a/3rd_party/imgui/imgui_draw.cpp +++ b/3rd_party/imgui/imgui_draw.cpp @@ -1573,6 +1573,7 @@ ImFont* ImFontAtlas::AddFontFromFileTTF(const char* filename, float size_pixels, void* data = ImFileLoadToMemory(filename, "rb", &data_size, 0); if (!data) { + printf("failed to load font file: %s", filename); IM_ASSERT(0); // Could not load file. return NULL; }