Skip to content

Latest commit

 

History

History
174 lines (124 loc) · 6.57 KB

textStyle.md

File metadata and controls

174 lines (124 loc) · 6.57 KB

TextStyle

Kind: global interface

textStyle.name : String

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

textStyle.sourceId : String

Id of the text style in the source design document.

Kind: instance property of TextStyle

textStyle.fontFace : String

Complete font name of the text style.

Kind: instance property of TextStyle

textStyle.fontSize : Number

Font size of the text style.

Kind: instance property of TextStyle

textStyle.fontWeight : Number

Font weight of the text style.

Kind: instance property of TextStyle

textStyle.fontStyle : String

Font style of the text style, e.g. italic, oblique.

Kind: instance property of TextStyle

textStyle.fontFamily : String

Font family of the text style, e.g. Roboto, Arial.

Kind: instance property of TextStyle

textStyle.fontStretch : String

Font stretch form of the text style, e.g. condensed, expanded.

Kind: instance property of TextStyle

textStyle.lineHeight : Number

Minimum height of a line for the text style.

Kind: instance property of TextStyle

textStyle.textAlign : String

Horizontal alignment of the text style, left, right, center, or justify.

Kind: instance property of TextStyle

textStyle.verticalAlignment : String

Vertical alignment of the text style, top, center, or bottom.

Kind: instance property of TextStyle

textStyle.letterSpacing : Number

Letter spacing of the text style.

Kind: instance property of TextStyle

textStyle.color : Color

Color of the text style.

Kind: instance property of TextStyle

textStyle.weightText : String

Textual representation of the text style's weight, e.g. bold for 700, medium for 500.

Kind: instance property of TextStyle

textStyle.equals(t) ⇒ Boolean

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.

textStyle.paragraphSpacing : Number

Paragraph spacing of the text style.

Kind: instance property of TextStyle

textStyle.paragraphIndent : Number

Paragraph indent of the text style.

Kind: instance property of TextStyle

textStyle.listSpacing : Number

List spacing of the text style.

Kind: instance property of TextStyle

textStyle.hyperlink : String

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

TextStyle.TEXT_TRANSFORM : enum

Text transforms for a text style.

Kind: static enum of TextStyle Properties

Name Type Default
UPPERCASE String uppercase
LOWERCASE String lowercase
TITLECASE String titlecase