文本 | Text
通用属性
fontFamily?: string
字体
fontSize?: number
文字大小
IFontWeight
fontWeight?:文字粗细
type IFontWeight = IFontWeightNumerical | IFontWeightString
type IFontWeightNumerical = 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900
type IFontWeightString =
| 'thin'
| 'extra-light'
| 'light'
| 'normal'
| 'medium'
| 'semi-bold'
| 'bold'
| 'extra-bold'
| 'black'
italic?: boolean
是否倾斜。
ITextCase
textCase?:文本大小写格式。
type ITextCase =
| 'upper'
| 'lower'
| 'title'
| 'original'
| 'small-caps'
| 'small-caps-forced'
ITextDecoration
textDecoration?:文本下划线或删除线。
type ITextDecoration = 'none' | 'strikethrough' | 'underline'
IPercent
letterSpacing?: number |字间距。
IPercent
lineHeight?: number |行间距。
paragraphIndent?: number
段落缩进字符数。
paragraphSpacing?: number
段落间距。
ITextAlign
textAlign?:文本对齐, 当设置了文本 width 时才有效。
type ITextAlign = 'left' | 'center' | 'right' | 'justify'
IVerticalAlign
verticalAlign?:文本垂直对齐,当设置了文本 height 时才有效。
type IVerticalAlign = 'top' | 'middle' | 'bottom'