surface.DrawText
Example
Draws Hello World
on the screen. All functions in this example must be called for the rendering to work flawlessly every time.
Example
Draws rainbow text without using surface.GetTextSize and surface.SetTextPos for every character (more efficient).