Skip to main content
Module

x/targadactyl/deps.ts>FontConstructor

tga.js implemented in Deno
Latest
interface FontConstructor
import { type FontConstructor } from "https://deno.land/x/targadactyl@1.2.0/deps.ts";

See SkFont.h for more.

Methods

new(face: Typeface | null, size?: number): Font

Constructs Font with default values with Typeface.

new(
face: Typeface | null,
size: number,
scaleX: number,
skewX: number,
): Font

Constructs Font with default values with Typeface and size in points, horizontal scale, and horizontal skew. Horizontal scale emulates condensed and expanded fonts. Horizontal skew emulates oblique fonts.