Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

TextMetrics

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

interface TextMetrics {
readonly actualBoundingBoxAscent: number;
readonly actualBoundingBoxDescent: number;
readonly actualBoundingBoxLeft: number;
readonly actualBoundingBoxRight: number;
readonly fontBoundingBoxAscent: number;
readonly fontBoundingBoxDescent: number;
readonly width: number;
}
var TextMetrics: {
prototype: TextMetrics;
new (): TextMetrics;
}
;

§Properties

§
readonly actualBoundingBoxAscent: number
[src]

Returns the measurement described below.

§
readonly actualBoundingBoxDescent: number
[src]

Returns the measurement described below.

§
readonly actualBoundingBoxLeft: number
[src]

Returns the measurement described below.

§
readonly actualBoundingBoxRight: number
[src]

Returns the measurement described below.

§
readonly fontBoundingBoxAscent: number
[src]

Returns the measurement described below.

§
readonly fontBoundingBoxDescent: number
[src]

Returns the measurement described below.

§
readonly width: number
[src]

Returns the measurement described below.