Module

x/canvas/mod.ts>ShapedText

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

A simple wrapper around SkTextBlob and the simple Text Shaper.

Methods

getBounds(outputArray?: SkRect): SkRect

Return the bounding area for the given text.