Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface SkFontConstructor
import { type SkFontConstructor } from "https://deno.land/x/canvaseno@v1.0.2/mod.ts";

See SkFont.h for more.

Methods

new(face: SkTypeface | null, size?: number): SkFont

Constructs SkFont with default values with SkTypeface.

new(
face: SkTypeface | null,
size: number,
scaleX: number,
skewX: number,
): SkFont

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