Global Function
Declaration
func text(message: String, font: TFont, x: Double, y: Double)
Parameters
| message | A String to be rendered in the view. |
| font | TFont object that specifies the font and attributes for rendering. |
| x | x-coordinate of the position of the text. |
| y | y-coordinate of the position of the text. |
Returns
-
Description
Render text in the view. The current fillColor determines the text color.
Examples
let font1 = TFont(fontName: "Futura", ofSize: 80.0)
text(message: "Hello World", font: font1, x: 200, y: 100)Related