You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 rangefileData=file.loadRaw("resources/myfont.ttf")
glyphs=raylib.LoadFontData(fileData, 32, null, 0, 0)
print"Loaded "+glyphs.len+" glyphs"raylib.UnloadFontDataglyphs