Skip to content
UIFontInfo

界面 / UIFontInfo

UIFontInfo Class
​

字体信息

Table of contents ​

Properties
​

contentColor: LinearColor
内容颜色
fontSize: number
大小
glyph: UIFontGlyph
字形
letterSpacing: number
间距
outLineColor: LinearColor
描边颜色
outLineSize: number
描边大小
richText: boolean
富文本
shadowColor: LinearColor
阴影颜色
shadowOffset: Vector2
阴影偏移
strikethrough: boolean
删除线
textAlign: TextJustify
对齐方式
textVerticalAlign: TextVerticalJustify
垂直对齐方式
underline: boolean
下划线

Properties ​

contentColor
​

• contentColor: LinearColor

内容颜色


fontSize
​

• fontSize: number

大小


glyph
​

• glyph: UIFontGlyph

字形


letterSpacing
​

• letterSpacing: number

间距


outLineColor
​

• outLineColor: LinearColor

描边颜色


outLineSize
​

• outLineSize: number

描边大小


richText
​

• richText: boolean

富文本


shadowColor
​

• shadowColor: LinearColor

阴影颜色


shadowOffset
​

• shadowOffset: Vector2

阴影偏移


strikethrough
​

• strikethrough: boolean

删除线


textAlign
​

• textAlign: TextJustify

对齐方式


textVerticalAlign
​

• textVerticalAlign: TextVerticalJustify

垂直对齐方式


underline
​

• underline: boolean

下划线