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

x/canvaseno/mod.ts>SkFontMgr

Canvas API for deno
Latest
interface SkFontMgr
implements EmbindObject<SkFontMgr>
import { type SkFontMgr } from "https://deno.land/x/canvaseno@v1.0.2/mod.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): SkTypeface

Create a typeface for the specified bytes and return it.