From 17df140cc9d6152c46915716a0d2f78183ef1921 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sat, 22 Mar 2025 16:09:16 -0500 Subject: [PATCH] don't abort if a glyph fails to pack --- extern/imgui_patched/misc/freetype/imgui_freetype.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extern/imgui_patched/misc/freetype/imgui_freetype.cpp b/extern/imgui_patched/misc/freetype/imgui_freetype.cpp index c508066f8..7f7277f67 100644 --- a/extern/imgui_patched/misc/freetype/imgui_freetype.cpp +++ b/extern/imgui_patched/misc/freetype/imgui_freetype.cpp @@ -692,7 +692,9 @@ bool ImFontAtlasBuildWithFreeTypeEx(FT_Library ft_library, ImFontAtlas* atlas, u { ImFontBuildSrcGlyphFT& src_glyph = src_tmp.GlyphsList[glyph_i]; stbrp_rect& pack_rect = src_tmp.Rects[glyph_i]; - IM_ASSERT(pack_rect.was_packed); + if (!pack_rect.was_packed) // this was an assertion. why?! + continue; + if (pack_rect.w == 0 && pack_rect.h == 0) continue;