Skip to content
TextStyle

UI / TextStyle

TextStyle Class ​

Text Style Type

Table of contents ​

Accessors ​

fontColor(): LinearColor other
Get font color
fontGlyph(): UIFontGlyph other
Get font type
fontSize(): number other
Get font size
fontSpace(): number other
Get font spacing
outlineColor(): LinearColor other
Get font outline color
outlineSize(): number other
Get font outline width
shadowColor(): LinearColor other
Obtain shadow color
shadowOffsets(): Vector2 other
Get Shadow offset

Accessors ​

fontColor ​

• get fontColor(): LinearColor other

• set fontColor(value): void other

Get font color

Returns ​

LinearColorFont color

Set font color

Parameters ​

value LinearColorFont color

fontGlyph ​

• get fontGlyph(): UIFontGlyph other

• set fontGlyph(value): void other

Get font type

Returns ​

UIFontGlyphFont type

Set font type

Parameters ​

value UIFontGlyphFont type

fontSize ​

• get fontSize(): number other

• set fontSize(value): void other

Get font size

Returns ​

numberfont size

Set font size

Parameters ​

value numberfont size

fontSpace ​

• get fontSpace(): number other

• set fontSpace(value): void other

Get font spacing

Returns ​

numberFont spacing

Set font spacing

Parameters ​

value numberFont spacing

outlineColor ​

• get outlineColor(): LinearColor other

• set outlineColor(value): void other

Get font outline color

Returns ​

LinearColorFont outline Color

Set font outline color

Parameters ​

value LinearColorFont outline Color

outlineSize ​

• get outlineSize(): number other

• set outlineSize(value): void other

Get font outline width

Returns ​

numberFont stroke width

Set font outline width

Parameters ​

value numberFont stroke width

shadowColor ​

• get shadowColor(): LinearColor other

• set shadowColor(value): void other

Obtain shadow color

Returns ​

LinearColorShadow color

Set shadow color

Parameters ​

value LinearColorShadow color

shadowOffsets ​

• get shadowOffsets(): Vector2 other

• set shadowOffsets(value): void other

Get Shadow offset

Returns ​

Vector2Shadow offset

Set Shadow offset

Parameters ​

value Vector2Shadow offset