-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.LoadFont
JoeStrout edited this page Apr 29, 2026
·
3 revisions
Load Font from file into GPU memory (VRAM)
| Parameter | Default Value | Note |
|---|---|---|
| fileName |
| Condition | Return Value |
|---|---|
| (always) | map |
// Load a TTF font, check it, then unload it
font = raylib.LoadFont("resources/myfont.ttf")
if raylib.IsFontValid(font) then
print "Loaded OK, base size: " + font.baseSize
raylib.UnloadFont font
end if