可對文本圖層中部分文本片段生效。
alignment: Alignment
文本對齊方式。
kerning: number
字間距。
lineHeight: number
行間距。
paragraphSpacing: number
段間距。
textColor: Color
文本顏色: RGB顏色值。
fontSize: number
字體的大小。
textTransform: TextTransform
文本轉換: 水平翻轉、垂直翻轉。
postscript: string
字體修改fontFamily fontStyle fontWeight 時, 需要通過設置當前屬性更改。
fontFamily: string [readonly]
字體名稱。
fontStyle: string [readonly]
字體樣式: 填充、邊框、外陰影、內陰影、模糊,該屬性設置對整個文本圖層生效。
fontWeight: string [readonly]
字體的粗細: 數值從 0 到 12,當為當前字體系列設置不存在的字體粗細時,將改為設置最接近的粗細。
textUnderline: DecorationStyle
文本下劃線。
textStrikethrough: StrikeThroughStyle
文本刪除線。
textBehaviour: TextBehaviour
文本行為, 確定是否自動計算寬或高。
fragments: TextFragment[]
富文本的文本片段。
sharedStyleId: string | undefined
文本資源ID。
sharedStyle: SharedTextStyle | null
文本資源。