-
Notifications
You must be signed in to change notification settings - Fork 2
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
| Parameter | Default Value | Note |
|---|---|---|
| font |
| Condition | Return Value |
|---|---|
| (always) | number |
// 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