Text

Linen. Text

Model for drawing text.
This element extends Linen.Model and inherits all of it's methods.

Constructor

new Text(Linen)

Source:
Parameters:
Name Type Description
Linen Linen The instance of Linen.

Methods

setWrap(bool) → {self}

Source:
set whether to wrap text or not.
Parameters:
Name Type Default Description
bool boolean true
Returns:
self
Type
self

setText(text) → {self}

Source:
Set the text that will be rendered.
Parameters:
Name Type Description
text string the text to be rendered
Returns:
self
Type
self

setFontFamily(fontFamily) → {self}

Source:
Set the font family that the text will be rendered in.
Parameters:
Name Type Description
fontFamily string font family that the text will be rendered in.
Returns:
self
Type
self

setFontSize(fontSize) → {self}

Source:
Set the font size that the text will be rendered in.
Parameters:
Name Type Description
fontSize * font size in pixels, points (pt), or inches (in)
Returns:
self
Type
self

setBold(bool) → {self}

Source:
Set the font to be Bold
Parameters:
Name Type Default Description
bool boolean true
Returns:
self
Type
self

setItalic(bool) → {self}

Source:
Set the font to be Italic
Parameters:
Name Type Default Description
bool boolean true
Returns:
self
Type
self