Module

x/canvas/types.ts

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

Methods

registerFont(bytes: ArrayBuffer | Uint8Array, family: string): void

Registers a given typeface with the given family name (ignoring whatever name the typface has for itself).