OptionalcolorText color
Full name of the text style's typeface.
Font family of the text
Font size of the text
OptionalfontThe stretch form of the text style. e.g., condensed, expanded, etc.
Font style of the text
OptionalfontFont variant alternates
OptionalfontFont variant caps
OptionalfontFont variant east asian
OptionalfontFont variant ligatures
OptionalfontFont variant numeric
OptionalfontFont variant position
OptionalfontVariation axis values of the font.
Font weight of the text
OptionalhyperlinkHyperlink of the text style.
OptionalletterLetter spacing
OptionallineLine height
OptionallistList spacing of the text style.
Given name of the text style in the context where it is used.
OptionalparagraphParagraph indent of the text style.
OptionalparagraphParagraph spacing of the text style.
OptionalscaledId of the text style in the source design document.
OptionaltextText alignment
OptionaltextText decoration
OptionaltextText transform
OptionalverticalVertical alignment
Textual representation of the text style's weight. e.g., "bold" for 700, "medium" for 500, etc.
StaticALLOWED_StaticTEXT_StaticTEXT_StaticTEXT_StaticWEIGHTChecks 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
StaticfromCreates a TextStyle instance from a JSON string
JSON string representing a text style
A new TextStyle instance
Class representing a text style