Interface ITextMetrics
interface ITextMetrics {
actualBoundingBoxAscent: number;
actualBoundingBoxDescent: number;
actualBoundingBoxLeft: number;
actualBoundingBoxRight: number;
width: number;
}
actualBoundingBoxAscent: number;
actualBoundingBoxDescent: number;
actualBoundingBoxLeft: number;
actualBoundingBoxRight: number;
width: number;
}
Properties
Readonlyactual Bounding Box Ascent
actualBoundingBoxAscent: number
distance (in pixels) from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the top side of the bounding rectangle of the given text
Readonlyactual Bounding Box Descent
actualBoundingBoxDescent: number
distance (in pixels) from the horizontal line indicated by the CanvasRenderingContext2D.textBaseline property to the bottom side of the bounding rectangle of the given text
Readonlyactual Bounding Box Left
actualBoundingBoxLeft: number
distance (in pixels) parallel to the baseline from the alignment point given by the CanvasRenderingContext2D.textAlign property to the left side of the bounding rectangle of the given text
Readonlyactual Bounding Box Right
actualBoundingBoxRight: number
distance (in pixels) parallel to the baseline from the alignment point given by the CanvasRenderingContext2D.textAlign property to the right side of the bounding rectangle of the given text
Readonlywidth
width: number
Text width.
Class used to abstract a text measurement