Skip to content

raylib.LoadFontData

JoeStrout edited this page Apr 29, 2026 · 3 revisions

Load font data for further use NOTE: Requires TTF font memory data and can generate SDF data

Parameters

Parameter Default Value Note
fileData
fontSize
codepoints null
codepointCount 0
type 0

Return value

Condition Return Value
(always) list

Notes

Example

// Load glyph data from raw TTF file bytes for the ASCII printable range
fileData = file.loadRaw("resources/myfont.ttf")
glyphs = raylib.LoadFontData(fileData, 32, null, 0, 0)
print "Loaded " + glyphs.len + " glyphs"
raylib.UnloadFontData glyphs

Clone this wiki locally