From fd28dc564429872dca6f1d096284b750b6c3e0f2 Mon Sep 17 00:00:00 2001 From: Thomas Anderson <5776225+CrackedPixel@users.noreply.github.com> Date: Wed, 13 May 2026 01:56:13 -0500 Subject: [PATCH] [rtext] add warning for loadfontex/loadfontfrommemory (#5864) * add warning for loadfontex/loadfontfrommemory * bump to re-run build tests --- src/rtext.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/rtext.c b/src/rtext.c index a3ec016f5..c0434db63 100644 --- a/src/rtext.c +++ b/src/rtext.c @@ -580,8 +580,13 @@ Font LoadFontFromMemory(const char *fileType, const unsigned char *fileData, int TRACELOG(LOG_INFO, "FONT: Data loaded successfully (%i pixel size | %i glyphs)", font.baseSize, font.glyphCount); } - else font = GetFontDefault(); + else + { + TRACELOG(LOG_WARNING, "FONT: Font is not supported by LoadFontEx/LoadFontFromMemory or no glyphs found, reverted to default font"); + font = GetFontDefault(); + } #else + TRACELOG(LOG_WARNING, "FONT: Font is not supported by LoadFontEx/LoadFontFromMemory or no glyphs found, reverted to default font"); font = GetFontDefault(); #endif