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 Sep 11, 2026
·
4 revisions
This is needed for manual font construction, e.g. SDF fonts
Parameters
Parameter
Default Value
Note
baseSize
glyphs
recs
texture
glyphPadding
0
Return value
Condition
Return Value
(always)
map
Notes
Example
// Construct a Font map from pre-built glyph data and atlas texture// (glyphs, recs, and tex are typically obtained from LoadFontData + GenImageFontAtlas)font=raylib.MakeFont(32, glyphs, recs, tex, 4)
ifraylib.IsFontValid(font) thenraylib.DrawTextExfont, "Custom font", [10, 10], 32, 1, raylib.WHITEendif