-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.MakeFont
JoeStrout edited this page Apr 29, 2026
·
3 revisions
MakeFont
| Parameter | Default Value | Note |
|---|---|---|
| baseSize | ||
| glyphs | ||
| recs | ||
| texture | ||
| glyphPadding | 0 |
| Condition | Return Value |
|---|---|
| (always) | map |
// 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)
if raylib.IsFontValid(font) then
raylib.DrawTextEx font, "Custom font", [10, 10], 32, 1, raylib.WHITE
end if