param |
object
|
参数对象。
Properties
| Name |
Type |
Attributes |
Default |
Description |
fontText |
string
|
|
|
文字内容 |
fontType |
string
|
<optional>
|
'Arial'
|
字体 |
fontSize |
number
|
<optional>
|
10
|
字号 |
fontWeight |
FontWeight
|
<optional>
|
THING.FontWeight.Normal
|
字体粗细 |
fontLineWidth |
number
|
<optional>
|
Infinity
|
文本换行最大宽度 |
fontLineHeight |
number
|
<optional>
|
0
|
文本换行高度 |
fontColor |
Array.<number>
|
string
|
<optional>
|
'#ffffff'
|
文本颜色 |
fontShadowColor |
Array.<number>
|
string
|
<optional>
|
'#000000'
|
阴影颜色 |
fontShadowAlpha |
number
|
<optional>
|
1.0
|
阴影透明度 |
fontShadowAngle |
number
|
<optional>
|
45
|
阴影旋转角度 |
fontShadowBlur |
number
|
<optional>
|
1
|
阴影模糊系数 |
fontShadowDistance |
number
|
<optional>
|
1
|
阴影距离 |
fontAlignType |
AlignType
|
<optional>
|
THING.AlignType.Center
|
文本对齐方式 |
richText |
boolean
|
<optional>
|
false
|
是否开启富文本模式 |
mode |
string
|
<optional>
|
'defalt'
|
文本渲染模式 包括 'sdf','default','msdf','msdf-woreker' |
|