Kind: global interface
- TextStyle
- .name :
String
- .sourceId :
String
- .fontFace :
String
- .fontSize :
Number
- .fontWeight :
Number
- .fontStyle :
String
- .fontFamily :
String
- .fontStretch :
String
- .lineHeight :
Number
- .textAlign :
String
- .verticalAlignment :
String
- .letterSpacing :
Number
- .color :
Color
- .weightText :
String
- .equals(t) ⇒
Boolean
- .paragraphSpacing :
Number
- .paragraphIndent :
Number
- .listSpacing :
Number
- .hyperlink :
String
- .textDecoration :
TextDecoration
- .textTransform :
TEXT_TRANSFORM
- static
- .TEXT_TRANSFORM :
enum
- .TEXT_TRANSFORM :
- .name :
Name of the text style, only exists on project text styles. To check if a text style (e.g. from a layer) exists in the project, see Project.findTextStyleEqual
.
Kind: instance property of TextStyle
Id of the text style in the source design document.
Kind: instance property of TextStyle
Complete font name of the text style.
Kind: instance property of TextStyle
Font size of the text style.
Kind: instance property of TextStyle
Font weight of the text style.
Kind: instance property of TextStyle
Font style of the text style, e.g. italic
, oblique
.
Kind: instance property of TextStyle
Font family of the text style, e.g. Roboto
, Arial
.
Kind: instance property of TextStyle
Font stretch form of the text style, e.g. condensed
, expanded
.
Kind: instance property of TextStyle
Minimum height of a line for the text style.
Kind: instance property of TextStyle
Horizontal alignment of the text style, left
, right
, center
, or justify
.
Kind: instance property of TextStyle
Vertical alignment of the text style, top
, center
, or bottom
.
Kind: instance property of TextStyle
Letter spacing of the text style.
Kind: instance property of TextStyle
textStyle.color : Color
Color of the text style.
Kind: instance property of TextStyle
Textual representation of the text style's weight, e.g. bold
for 700, medium
for 500.
Kind: instance property of TextStyle
Checks whether another text style. is equal to this one.
Kind: instance method of TextStyle
Param | Type | Description |
---|---|---|
t | TextStyle |
TextStyle object to be compared. |
Paragraph spacing of the text style.
Kind: instance property of TextStyle
Paragraph indent of the text style.
Kind: instance property of TextStyle
List spacing of the text style.
Kind: instance property of TextStyle
Hyperlink of the text style.
Kind: instance property of TextStyle
textStyle.textDecoration : TextDecoration
Text decoration of the text style.
Kind: instance property of TextStyle
textStyle.textTransform : TEXT_TRANSFORM
Text transform of the text style.
Kind: instance property of TextStyle
Text transforms for a text style.
Kind: static enum of TextStyle
Properties
Name | Type | Default |
---|---|---|
UPPERCASE | String |
uppercase |
LOWERCASE | String |
lowercase |
TITLECASE | String |
titlecase |