draw Text
fun Canvas.drawText(x: Int, y: Int, text: String, color: Color = Color.WHITE, fontSize: Int = font.baseSize, font: Font = Font.default(), spacing: Float = 0.0f, rotX: Float = 0.0f, rotY: Float = 0.0f, rotation: Float = 0.0f)
Draws text on the given canvas.
Parameters
x
The X coordinate to draw the text at.
y
The Y coordinate to draw the text at.
text
The text to draw.
color
The color of the text. Default is white.
font Size
The size of the font. Default is the base size of the font.
font
The font to use. Default is the default font.
spacing
The spacing between characters. Default is 0.
rot X
The X coordinate of the rotation origin. Default is 0.
rot Y
The Y coordinate of the rotation origin. Default is 0.
rotation
The rotation angle in degrees. Default is 0.