Skip to content

raylib.LoadFont

JoeStrout edited this page Apr 29, 2026 · 3 revisions

Load Font from file into GPU memory (VRAM)

Parameters

Parameter Default Value Note
fileName

Return value

Condition Return Value
(always) map

Notes

Example

// 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

Clone this wiki locally