Module

x/canvas/mod.ts

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

Methods

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

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

RefDefault(): SkFontMgr

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