phaser - v4.0.0-rc.4
    Preparing search index...

    Results object from a call to GetTextSize.

    type GetTextSizeObject = {
        height: number;
        lineHeight: number;
        lines: number;
        lineSpacing: number;
        lineWidths: number[];
        width: number;
    }
    Index

    Properties

    height: number

    The height of the Text object.

    lineHeight: number

    The height of a line factoring in font and stroke.

    lines: number

    The number of lines in the Text object.

    lineSpacing: number

    The line spacing of the Text object.

    lineWidths: number[]

    An array of the lines for each line in the Text object.

    width: number

    The width of the longest line in the Text object.