Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/ogone/src/ogone.dom.d.ts>TextMetrics

Advanced Web Composition for Future
Latest
interface TextMetrics
import { type TextMetrics } from "https://deno.land/x/ogone@revb3/src/ogone.dom.d.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.