skia
    Preparing search index...

    Interface LineMetrics

    See Metrics.h for more on this struct.

    interface LineMetrics {
        ascent: number;
        baseline: number;
        descent: number;
        endExcludingWhitespaces: number;
        endIncludingNewline: number;
        endIndex: number;
        height: number;
        isHardBreak: boolean;
        left: number;
        lineNumber: number;
        startIndex: number;
        width: number;
    }
    Index

    Properties

    ascent: number

    The final computed ascent for the line. This can be impacted by the strut, height, scaling, as well as outlying runs that are very tall.

    baseline: number

    The y position of the baseline for this line from the top of the paragraph.

    descent: number

    The final computed descent for the line. This can be impacted by the strut, height, scaling, as well as outlying runs that are very tall.

    endExcludingWhitespaces: number
    endIncludingNewline: number
    endIndex: number

    The index in the text buffer the line ends.

    height: number

    round(ascent + descent)

    isHardBreak: boolean

    True if the line ends in a hard break (e.g. newline)

    left: number

    The left edge of the line. The right edge can be obtained with left + width

    lineNumber: number

    Zero indexed line number.

    startIndex: number

    The index in the text buffer the line begins.

    width: number

    width of the line