Skip to content

[rtext] add warning for loadfontex/loadfontfrommemory#5864

Merged
raysan5 merged 2 commits into
raysan5:masterfrom
CrackedPixel:font-add-fnt-loading
May 13, 2026
Merged

[rtext] add warning for loadfontex/loadfontfrommemory#5864
raysan5 merged 2 commits into
raysan5:masterfrom
CrackedPixel:font-add-fnt-loading

Conversation

@CrackedPixel
Copy link
Copy Markdown
Contributor

@CrackedPixel CrackedPixel commented May 12, 2026

Added warning to LoadFontEx/LoadFontFromMemory, brought up from #5856 where some font formats are unavailable to load from memory

the easiest way to see this is to make a small change to text/text_unicode_emojis

Font fontDefault = LoadFont("resources/dejavu.fnt");
// =>
Font fontDefault = LoadFontEx("resources/dejavu.fnt", 32, NULL, 95);
INFO: FILEIO: [resources/dejavu.fnt] File loaded successfully
WARNING: FONT: Font is not supported by LoadFontEx/LoadFontFromMemory or no glyphs found, reverted to default font

@raysan5 raysan5 merged commit fd28dc5 into raysan5:master May 13, 2026
16 checks passed
@raysan5
Copy link
Copy Markdown
Owner

raysan5 commented May 13, 2026

@CrackedPixel thanks, looks good as a quick solution but it requires some further review...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants