Skip to content
TextStyle

界面 / TextStyle

TextStyle Class
​

文本风格类型

Table of contents ​

Accessors
​

fontColor(): LinearColor client
获取字体颜色
fontGlyph(): UIFontGlyph client
获取字体类型
fontSize(): number client
获取字体大小
fontSpace(): number client
获取字体间距
outlineColor(): LinearColor client
获取字体描边颜色
outlineSize(): number client
获取字体描边宽度
shadowColor(): LinearColor client
获取阴影颜色
shadowOffsets(): Vector2 client
获取阴影偏移

Accessors ​

fontColor
​

• get fontColor(): LinearColor client

• set fontColor(value): void client

获取字体颜色

Returns ​

LinearColor字体颜色

设置字体颜色

Parameters ​

value LinearColor字体颜色

fontGlyph
​

• get fontGlyph(): UIFontGlyph client

• set fontGlyph(value): void client

获取字体类型

Returns ​

UIFontGlyph字体类型

设置字体类型

Parameters ​

value UIFontGlyph字体类型

fontSize
​

• get fontSize(): number client

• set fontSize(value): void client

获取字体大小

Returns ​

number字体大小

设置字体大小

Parameters ​

value number字体大小

fontSpace
​

• get fontSpace(): number client

• set fontSpace(value): void client

获取字体间距

Returns ​

number字体间距

设置字体间距

Parameters ​

value number字体间距

outlineColor
​

• get outlineColor(): LinearColor client

• set outlineColor(value): void client

获取字体描边颜色

Returns ​

LinearColor字体描边颜色

设置字体描边颜色

Parameters ​

value LinearColor字体描边颜色

outlineSize
​

• get outlineSize(): number client

• set outlineSize(value): void client

获取字体描边宽度

Returns ​

number字体描边宽度

设置字体描边宽度

Parameters ​

value number字体描边宽度

shadowColor
​

• get shadowColor(): LinearColor client

• set shadowColor(value): void client

获取阴影颜色

Returns ​

LinearColor阴影颜色

设置阴影颜色

Parameters ​

value LinearColor阴影颜色

shadowOffsets
​

• get shadowOffsets(): Vector2 client

• set shadowOffsets(value): void client

获取阴影偏移

Returns ​

Vector2阴影偏移

设置阴影偏移

Parameters ​

value Vector2阴影偏移