Skip to main content
Module

x/canvas/mod.ts>FontMgrFactory

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

Methods

FromData(...buffers: ArrayBuffer[]): FontMgr | null

Create an FontMgr with the created font data. Returns null if buffers was empty.

RefDefault(): FontMgr

Return the default FontMgr. This will generally have 0 or 1 fonts in it, depending on if the demo monospace font was compiled in.