A list of fonts and their fallbacks. These can also be provided in the fontFamily attribute but will be normalized to here.
This can be set as a string using html values such as 'Arial 11pt' but will be resolved to a single font. Fallbacks and fontSize will be marshalled into their correct property.
The text color.
Adds or removes additional spacing between the characters.
Font size is either a number in points or a string that can be converted such as '14px', '1.5em'.
The effect draws the text with a line through it.
Returns the size to scale the font for super/sub text.
Returns the number of pixels to shift the font for super/sub text.
Sets the underline style. If true defaults to single. If false or null defaults to none.
Returns the vertical alignment of the text within a text line.
The weight of the characters.
Compare against another font to see if they will have the same font measure This is used to optimize updates by not re-calcing the width/height
The other style font
Returns true
if the font is either a superscript or a subscript.
Returns the font styles as a set of css string that are suitable for css.
Optional
darkMode: booleanOptional
zoom: numberOptional
excludeNormal: booleanSerializes to a JSON object.
Represents a font with styling color.