Skip to main content
Module

x/sdl2/mod.ts>Canvas#loadFont

SDL2 module for Deno
Latest
method Canvas.prototype.loadFont
import { Canvas } from "https://deno.land/x/sdl2@0.9.0/mod.ts";

Create a font from a file, using a specified point size.

Parameters

path: string

the path to the font file

size: number

point size to use for the newly-opened font