OptionalenabledWhether the strut takes effect at all.
OptionalfontFamilies whose metrics define the strut, in preference order.
OptionalfontType size the strut's metrics are computed at, in pixels.
OptionalforceClamp every line to the strut height (vs. treat it as a minimum).
OptionalhalfDistribute leading half above / half below the text.
OptionalheightLine-height multiplier for the strut line box.
OptionalleadingExtra leading as a multiple of the strut font size.
A fixed line box independent of the per-run fonts, for deterministic leading (captions, subtitles, vertically-aligned blocks). Mirrors CanvasKit's
StrutStyle. Presence on a paragraph style enables the strut unlessenabledis explicitlyfalse.🧪 Not in the HTML Canvas standard.