OptionalfillOptionalfontCSS canvas font string.
OptionalletterAdditional space between Unicode characters in logical pixels.
OptionallineExplicit logical line height.
OptionalmaxMaximum rendered lines. Zero allows any number of lines.
OptionalmaxMaximum content width in logical pixels. Zero disables width constraints.
OptionaloverflowBehavior when content exceeds maxWidth or maxLines.
OptionalpaddingPadding around the generated label in logical pixels.
OptionalparagraphAdditional space after explicit newline-separated paragraphs.
OptionalresolutionCanvas backing pixels per logical sprite pixel.
OptionalstrokeOptional outline color.
OptionalstrokeOutline width in logical pixels.
OptionaltextHorizontal line alignment inside the generated texture.
OptionaltextCanvas text baseline used inside each logical line box.
OptionalwordAutomatically wrap measured words and CJK characters at maxWidth.
Fill color understood by Canvas 2D.