Optional
colorText color
Full name of the text style's typeface.
Font family of the text
Font size of the text
Optional
fontThe stretch form of the text style. e.g., condensed, expanded, etc.
Font style of the text
Optional
fontFont variant alternates
Optional
fontFont variant caps
Optional
fontFont variant east asian
Optional
fontFont variant ligatures
Optional
fontFont variant numeric
Optional
fontFont variant position
Optional
fontVariation axis values of the font.
Font weight of the text
Optional
hyperlinkHyperlink of the text style.
Optional
letterLetter spacing
Optional
lineLine height
Optional
listList spacing of the text style.
Given name of the text style in the context where it is used.
Optional
paragraphParagraph indent of the text style.
Optional
paragraphParagraph spacing of the text style.
Optional
scaledId of the text style in the source design document.
Optional
textText alignment
Optional
textText decoration
Optional
textText transform
Optional
verticalVertical alignment
Textual representation of the text style's weight. e.g., "bold" for 700, "medium" for 500, etc.
Static
ALLOWED_Static
TEXT_Static
TEXT_Static
TEXT_Static
WEIGHTChecks whether some other text style conforms to this one
TextStyle object to be compared.
True if the text style conforms to this one, false otherwise
Checks whether some other text style is equal to this one
TextStyle object to be compared.
True if the text styles are equal, false otherwise
Checks if font variation settings are equal to the provided settings
Font variation settings to compare with
True if the settings are equal, false otherwise
Static
fromCreates a TextStyle instance from a JSON string
JSON string representing a text style
A new TextStyle instance
Class representing a text style