Skip to content

raylib.DrawTextPro

JoeStrout edited this page Nov 16, 2026 · 4 revisions

Draw text using Font, rotated (in degrees) around origin

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