meo-canvas - v8.1.3
    Preparing search index...

    Interface TextSegment

    Represents a text segment with styling information

    interface TextSegment {
        b?: boolean;
        color?: string;
        i?: boolean;
        size?: number;
        text: string;
        weight?:
            | number
            | "bold"
            | "normal"
            | "100"
            | "200"
            | "300"
            | "400"
            | "500"
            | "600"
            | "700"
            | "800"
            | "900";
        width?: number;
    }
    Index
    b?: boolean

    Whether a <b> tag encloses this run.

    color?: string

    Colour for this run, from a <color> tag. Falls back to the node's color.

    i?: boolean

    Whether an <i> tag encloses this run.

    size?: number

    Size for this run, from a <size> tag. Falls back to the node's fontSize.

    Pixels.

    text: string

    The run of characters this segment draws.

    weight?:
        | number
        | "bold"
        | "normal"
        | "100"
        | "200"
        | "300"
        | "400"
        | "500"
        | "600"
        | "700"
        | "800"
        | "900"

    Weight for this run, from a <weight> tag. Falls back to the node's fontWeight.

    width?: number

    The run's measured width, cached while the line is being laid out so wrapping does not measure the same run twice.