-
Notifications
You must be signed in to change notification settings - Fork 2
raylib.DrawTextEx
JoeStrout edited this page Apr 29, 2026
·
3 revisions
Draw text using Font NOTE: chars spacing is NOT proportional to fontSize
| Parameter | Default Value | Note |
|---|---|---|
| font | ||
| text | ||
| position | [0, 0] | |
| fontSize | 20 | |
| spacing | 0 | |
| tint | BLACK |
None.
// Draw text with a custom font loaded from file
font = raylib.LoadFont("resources/myfont.ttf")
if raylib.IsFontValid(font) then
raylib.DrawTextEx font, "Hello!", [100, 200], 32, 2, raylib.WHITE
end if