Skip to content

raylib.DrawText

JoeStrout edited this page Nov 16, 2026 · 4 revisions

Draw text using the default font. If fontSize is smaller than the font's base size (10), the base size is used. Character spacing is proportional to fontSize

Parameters

Parameter Default Value Note
text
posX 0
posY 0
fontSize 20
color BLACK

Return value

None.

Notes

Example

// Draw a simple string using the default font
raylib.DrawText "Hello, World!", 100, 200, 24, raylib.WHITE

Clone this wiki locally