Skip to content

raylib.DrawTextPro

JoeStrout edited this page Apr 29, 2026 · 3 revisions

Draw text using Font and pro parameters (rotation)

Parameters

Parameter Default Value Note
font
text
position [0, 0]
origin [0, 0]
rotation 0
fontSize 20
spacing 0
tint BLACK

Return value

None.

Notes

Example

// Draw rotated text centered at (200, 150)
font = raylib.GetFontDefault
raylib.DrawTextPro font, "Rotated!", [200, 150], [40, 10], 45, 24, 2, raylib.RED

Clone this wiki locally