Skip to main content
Module

x/evt/lib/types/lib.dom.ts>TextMetrics

💧EventEmitter's typesafe replacement
Go to Latest
interface TextMetrics
import { type TextMetrics } from "https://deno.land/x/evt@v2.4.3/lib/types/lib.dom.ts";

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

Properties

readonly
actualBoundingBoxAscent: number

Returns the measurement described below.

readonly
actualBoundingBoxDescent: number

Returns the measurement described below.

readonly
actualBoundingBoxLeft: number

Returns the measurement described below.

readonly
actualBoundingBoxRight: number

Returns the measurement described below.

readonly
alphabeticBaseline: number

Returns the measurement described below.

readonly
emHeightAscent: number

Returns the measurement described below.

readonly
emHeightDescent: number

Returns the measurement described below.

readonly
fontBoundingBoxAscent: number

Returns the measurement described below.

readonly
fontBoundingBoxDescent: number

Returns the measurement described below.

readonly
hangingBaseline: number

Returns the measurement described below.

readonly
ideographicBaseline: number

Returns the measurement described below.

readonly
width: number

Returns the measurement described below.