Skip to content

raylib.IsFontValid

JoeStrout edited this page Apr 29, 2026 · 3 revisions

Check if a font is valid (font data loaded) WARNING: GPU texture not checked

Parameters

Parameter Default Value Note
font

Return value

Condition Return Value
(always) number

Notes

Example

// Load a font and verify it loaded successfully
font = raylib.LoadFont("resources/myfont.ttf")
if raylib.IsFontValid(font) then
    print "Font loaded OK"
    raylib.UnloadFont font
else
    print "Font failed to load"
end if

Clone this wiki locally