Dynamic Icons Scripting Reference - v1.3.0
    Preparing search index...

    Interface TextMetrics

    The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method.

    MDN Reference

    interface TextMetrics {
        actualBoundingBoxAscent: number;
        actualBoundingBoxDescent: number;
        actualBoundingBoxLeft: number;
        actualBoundingBoxRight: number;
        alphabeticBaseline: number;
        emHeightAscent: number;
        emHeightDescent: number;
        fontBoundingBoxAscent: number;
        fontBoundingBoxDescent: number;
        hangingBaseline: number;
        ideographicBaseline: number;
        width: number;
        lines: TextMetricsLine[];
    }
    Index

    Properties

    actualBoundingBoxAscent: number
    actualBoundingBoxDescent: number
    actualBoundingBoxLeft: number
    actualBoundingBoxRight: number
    alphabeticBaseline: number
    emHeightAscent: number
    emHeightDescent: number
    fontBoundingBoxAscent: number
    fontBoundingBoxDescent: number
    hangingBaseline: number
    ideographicBaseline: number
    width: number

    Individual metrics for each line (only applicable when context's textWrap is set to true )