TextMetrics
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;
}
actualBoundingBoxAscent: number;
actualBoundingBoxDescent: number;
actualBoundingBoxLeft: number;
actualBoundingBoxRight: number;
alphabeticBaseline: number;
emHeightAscent: number;
emHeightDescent: number;
fontBoundingBoxAscent: number;
fontBoundingBoxDescent: number;
hangingBaseline: number;
ideographicBaseline: number;
width: number;
}
Index
Properties
<internal>.TextMetrics.actualBoundingBoxAscent<internal>.TextMetrics.actualBoundingBoxDescent<internal>.TextMetrics.actualBoundingBoxLeft<internal>.TextMetrics.actualBoundingBoxRight<internal>.TextMetrics.alphabeticBaseline<internal>.TextMetrics.emHeightAscent<internal>.TextMetrics.emHeightDescent<internal>.TextMetrics.fontBoundingBoxAscent<internal>.TextMetrics.fontBoundingBoxDescent<internal>.TextMetrics.hangingBaseline<internal>.TextMetrics.ideographicBaseline<internal>.TextMetrics.width
Properties
Readonlyactual Bounding Box Ascent
actualBoundingBoxAscent: number
Returns the measurement described below.
Readonlyactual Bounding Box Descent
actualBoundingBoxDescent: number
Returns the measurement described below.
Readonlyactual Bounding Box Left
actualBoundingBoxLeft: number
Returns the measurement described below.
Readonlyactual Bounding Box Right
actualBoundingBoxRight: number
Returns the measurement described below.
Readonlyalphabetic Baseline
alphabeticBaseline: number
Returns the measurement described below.
Readonlyem Height Ascent
emHeightAscent: number
Returns the measurement described below.
Readonlyem Height Descent
emHeightDescent: number
Returns the measurement described below.
Readonlyfont Bounding Box Ascent
fontBoundingBoxAscent: number
Returns the measurement described below.
Readonlyfont Bounding Box Descent
fontBoundingBoxDescent: number
Returns the measurement described below.
Readonlyhanging Baseline
hangingBaseline: number
Returns the measurement described below.
Readonlyideographic Baseline
ideographicBaseline: number
Returns the measurement described below.
Readonlywidth
width: number
Returns the measurement described below.
The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method.
MDN Reference