Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rtext] Don't return default font if LoadFontEx fails #4077

Merged
merged 1 commit into from
Jun 25, 2024

Commits on Jun 19, 2024

  1. [rtext] Don't return default font if LoadFontEx fails

    It is currently impossible to check a font loaded successfully with
    IsFontReady because LoadFontEx will always return a valid font.
    
    DrawTextEx has this check:
    if (font.texture.id == 0) font = GetFontDefault();  // Security check in case of not valid font
    
    So anyone relying on the default font as a fallback for fonts failing to
    load should still be covered.
    Peter0x44 committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    86a1f76 View commit details
    Browse the repository at this point in the history