Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/skia_canvas/mod.ts>Fonts.register

Fast HTML Canvas API implementation for Deno using Skia.
Go to Latest
method Fonts.register
import { Fonts } from "https://deno.land/x/skia_canvas@0.5.2/mod.ts";

Register a font either from file or in memory buffer

Parameters

path: string

Parameters

data: Uint8Array
optional
alias: string