The primary font family to use for the text
Text height in drawing units (primary size parameter) This determines the height of capital letters
Render backwards/mirrored
Whether the text is left-to-right or right-to-left
Render upside down
Unitless line height multiplier (follows W3C standard).
Actual line height in drawing units = fontSize × lineHeight
Use getLineHeightInPx helper for pixel calculations.
Defines the line spacing properties for text.
Determines how the line spacing factor is applied.
at_least: The line spacing is the larger of the value or the tallest character's natural height.
This ensures text doesn't overlap but respects a minimum spacing.exactly: Forces the line spacing to the specified value, even if characters
(especially tall ones like ascenders/descenders or special symbols) overlap.
Useful for precise layout control where overlapping might be acceptable or handled externally.multiple: The base line height (often derived from the font's intrinsic metrics and font size)
is multiplied by the value (e.g., a value of 1.5 would mean 150% of the base line height).
This is very common for relative spacing.The numerical value for the line spacing.
Its interpretation depends on the type property.
Italic angle in radians for oblique text rendering Positive values slant right, negative values slant left
Horizontal alignment of the text within its bounding box
Vertical alignment of the text within its bounding box
Character width as a ratio of text height Controls horizontal spacing and character proportions
Fallback font family for broader compatibility across all systems and languages Useful for emojis, non-latin characters, etc.