Skip to content

raylib.DrawText

JoeStrout edited this page Apr 29, 2026 · 3 revisions

Draw text (using default font) NOTE: fontSize work like in any drawing program but if fontSize is lower than font-base-size, then font-base-size is used NOTE: chars 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