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

x/canvas/mod.ts>CanvasText

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

Methods

fillText(
text: string,
x: number,
y: number,
maxWidth?: number,
): void
measureText(text: string): TextMetrics
strokeText(
text: string,
x: number,
y: number,
maxWidth?: number,
): void