Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/canvas/types.ts>TextMetrics

Canvas API for Deno, ported from canvaskit-wasm (Skia).
Go to Latest
interface TextMetrics
import { type TextMetrics } from "https://deno.land/x/canvas@v1.0.0/types.ts";

Properties

actualBoundingBoxAscent: number
actualBoundingBoxDescent: number
actualBoundingBoxLeft: number
actualBoundingBoxRight: number
alphabeticBaseline: number
emHeightAscent: number
emHeightDescent: number
fontBoundingBoxAscent: number
fontBoundingBoxDescent: number
hangingBaseline: number
ideographicBaseline: number
width: number