From 3426edb44853fe49c93a2c21bad05dd89eb2f5d6 Mon Sep 17 00:00:00 2001 From: mateuszhamryszczak-beep Date: Tue, 19 May 2026 21:52:41 +0200 Subject: [PATCH] Fix: Enable LoadFontEx to support .fnt files --- src/rtext.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/rtext.c b/src/rtext.c index c0434db63..93e0ca1d3 100644 --- a/src/rtext.c +++ b/src/rtext.c @@ -541,6 +541,13 @@ Font LoadFontFromMemory(const char *fileType, const unsigned char *fileData, int font.baseSize = fontSize; font.glyphPadding = 0; +#if SUPPORT_FILEFORMAT_FNT + if (IsFileExtension(fileExtLower, ".fnt")) + { + font = LoadBMFont(fileExtLower); + } +#endif + #if SUPPORT_FILEFORMAT_TTF if (TextIsEqual(fileExtLower, ".ttf") || TextIsEqual(fileExtLower, ".otf"))