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 from memory buffer, fileType refers to extension: i.e. ".ttf"
Parameters
Parameter
Default Value
Note
fileType
fileData
fontSize
codepoints
null
codepointCount
0
Return value
Condition
Return Value
(always)
map
Notes
Example
// Load a font from raw file data already in memoryfileData=file.loadRaw("resources/myfont.ttf")
font=raylib.LoadFontFromMemory(".ttf", fileData, 32, null, 0)
ifraylib.IsFontValid(font) thenraylib.DrawTextExfont, "From memory!", [10, 10], 32, 1, raylib.WHITEraylib.UnloadFontfontendif