Methods
setWrap(bool) → {self}
set whether to wrap text or not.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
bool |
boolean |
true
|
Returns:
self
- Type
- self
setText(text) → {self}
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}
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}
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}
Set the font to be Bold
Parameters:
Name | Type | Default | Description |
---|---|---|---|
bool |
boolean |
true
|
Returns:
self
- Type
- self
setItalic(bool) → {self}
Set the font to be Italic
Parameters:
Name | Type | Default | Description |
---|---|---|---|
bool |
boolean |
true
|
Returns:
self
- Type
- self