插件 / API文档 / Text:文本

Text:文本

text: string 
文本图层。


alignment: Alignment 
文本对齐方式。


verticalAlignment: VerticalAlignment 
文本垂直对齐。


kerning: number 
字间距。


lineHeight: number 
行间距。


paragraphSpacing: number 
段落间距。


textColor: Color 
文本颜色。


fontSize: number 
文本字号。


textTransform: TextTransform 
文本大小写转换类型。


postscript: string 
文本字体标识 。


fontFamily: string [readonly] 
文本字体。


fontStyle: string [readonly] 
文本样式。


fontWeight: string [readonly]
文本字重。


textUnderline: DecorationStyle 
文本下划线。


textStrikethrough: StrikeThroughStyle 
文本删除线。


textBehaviour: TextBehaviour 
文本换行。


fragments: TextFragment 
富文本编辑信息。



sharedStyleID: string | undefined 
文本资源的ID。


sharedStyle: SharedTextStyle | null 
文本是否创建为文本资源。