Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface SkFontMgrFactory
import { type SkFontMgrFactory } from "https://deno.land/x/canvaseno@v1.0.2/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.