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 Oct 17, 2026
·
4 revisions
Load font from file with defined codepoints and generation size NOTE: NULL for codepoints and 0 for codepointCount to load the default character set (32..126), font size is provided in pixels height
Parameters
Parameter
Default Value
Note
fileName
fontSize
20
codepoints
null
codepointCount
0
Return value
Condition
Return Value
(always)
map
Notes
Example
// Load a TTF font at 48px with the default character setfont=raylib.LoadFontEx("resources/myfont.ttf", 48, null, 0)
ifraylib.IsFontValid(font) thenraylib.DrawTextExfont, "Big text!", [50, 100], 48, 2, raylib.WHITEraylib.UnloadFontfontendif