meo-skia-canvas
    Preparing search index...

    Interface StrutStyleInput

    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 unless enabled is explicitly false.

    🧪 Not in the HTML Canvas standard.

    interface StrutStyleInput {
        enabled?: boolean;
        fontFamilies?: string[];
        fontSize?: number;
        forceStrutHeight?: boolean;
        halfLeading?: boolean;
        heightMultiplier?: number;
        leading?: number;
    }
    Index
    enabled?: boolean

    Whether the strut takes effect at all.

    fontFamilies?: string[]

    Families whose metrics define the strut, in preference order.

    fontSize?: number

    Type size the strut's metrics are computed at, in pixels.

    forceStrutHeight?: boolean

    Clamp every line to the strut height (vs. treat it as a minimum).

    halfLeading?: boolean

    Distribute leading half above / half below the text.

    heightMultiplier?: number

    Line-height multiplier for the strut line box.

    leading?: number

    Extra leading as a multiple of the strut font size.