Skip to content

raylib.DrawTextEx

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 file
font = raylib.LoadFont("resources/myfont.ttf")
if raylib.IsFontValid(font) then
    raylib.DrawTextEx font, "Hello!", [100, 200], 32, 2, raylib.WHITE
end if

Clone this wiki locally