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
Readonly
actual Bounding Box Ascent
actualBoundingBoxAscent: number
Returns the measurement described below.
Readonly
actual Bounding Box Descent
actualBoundingBoxDescent: number
Returns the measurement described below.
Readonly
actual Bounding Box Left
actualBoundingBoxLeft: number
Returns the measurement described below.
Readonly
actual Bounding Box Right
actualBoundingBoxRight: number
Returns the measurement described below.
Readonly
alphabetic Baseline
alphabeticBaseline: number
Returns the measurement described below.
Readonly
em Height Ascent
emHeightAscent: number
Returns the measurement described below.
Readonly
em Height Descent
emHeightDescent: number
Returns the measurement described below.
Readonly
font Bounding Box Ascent
fontBoundingBoxAscent: number
Returns the measurement described below.
Readonly
font Bounding Box Descent
fontBoundingBoxDescent: number
Returns the measurement described below.
Readonly
hanging Baseline
hangingBaseline: number
Returns the measurement described below.
Readonly
ideographic Baseline
ideographicBaseline: number
Returns the measurement described below.
Readonly
width
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