Module

x/canvas/types.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/types.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