Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/yxz/typing/lib.dom.ts>TextMetrics

Deno Standard Extensions
Go to Latest
interface TextMetrics
import { type TextMetrics } from "https://deno.land/x/yxz@0.17.0/typing/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
fontBoundingBoxAscent: number

Returns the measurement described below.

readonly
fontBoundingBoxDescent: number

Returns the measurement described below.

readonly
width: number

Returns the measurement described below.