Text

constructor(text: String)

Create text using the default TextStyle, which is a sans-serif font size 10, left to right, align baseline and left.


constructor(text: String, fontName: String)
constructor(text: String, fontName: String, fontSize: Float)
constructor(text: String, style: TextStyle)


constructor(text: String, textStyle: TextStyle, fontSize: Float)

Create text using the specified textStyle, but change the fontSize.


constructor(text: String, fontSize: Float)

Create text using the default TextStyle, but with a custom fontSize.