You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JoeStrout edited this page Apr 29, 2026
·
3 revisions
Load an Image font file (XNA style)
Parameters
Parameter
Default Value
Note
image
key
Color{255, 0, 255, 255}
firstChar
32
Return value
Condition
Return Value
(always)
map
Notes
Example
// Load a bitmap font from an image using magenta as the key colorimg=raylib.LoadImage("resources/font_atlas.png")
font=raylib.LoadFontFromImage(img, "#FF00FF", 32)
ifraylib.IsFontValid(font) thenraylib.DrawTextExfont, "Bitmap font!", [10, 10], 16, 1, raylib.WHITEraylib.UnloadFontfontendifraylib.UnloadImageimg