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
Draw text using Font NOTE: chars spacing is NOT proportional to fontSize
Parameters
Parameter
Default Value
Note
font
text
position
[0, 0]
fontSize
20
spacing
0
tint
BLACK
Return value
None.
Notes
Example
// Draw text with a custom font loaded from filefont=raylib.LoadFont("resources/myfont.ttf")
ifraylib.IsFontValid(font) thenraylib.DrawTextExfont, "Hello!", [100, 200], 32, 2, raylib.WHITEendif