Fields

wrap:Bool

Whether the text is wrapped within the object bounds (default: false)

valign:String

Vertical alignment ("center", "bottom" or "top" (default))

underline:Bool

Whether to underline the text (default: false)

strikeout:Bool

Whether to strike out the text (default: false)

pixelsize:Int

Pixel size of font (default: 16)

kerning:Bool

Whether to use kerning when placing characters (default: true)

italic:Bool

Whether to use an italic font (default: false)

halign:String

Horizontal alignment ("center", "right", "justify" or "left" (default))

fontfamily:String

Font family (default: sans-serif)

color:String

Hex-formatted color ("#RRGGBB" or "#AARRGGBB") (default: "#000000")

bold:Bool

Whether to use a bold font (default: false)