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

x/canvas/src/canvaskit.ts>FontMgr

Canvas API for Deno, ported from canvaskit-wasm (Skia).
Go to Latest
interface FontMgr
implements EmbindObject<FontMgr>
import { type FontMgr } from "https://deno.land/x/canvas@v1.3.0/src/canvaskit.ts";

See SkFontMgr.h for more details

Methods

countFamilies(): number

Return the number of font families loaded in this manager. Useful for debugging.

getFamilyName(index: number): string

Return the nth family name. Useful for debugging.

makeTypefaceFromData(fontData: ArrayBuffer): Typeface

Create a typeface for the specified bytes and return it.