Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/canvas/mod.ts>SkFontMgrFactory

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.4/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.