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

x/deno_chart/deps.ts>SkFontConstructor

A graph library for deno. Inspired by Chart.js. A simpler implementation for basic bar graphs that save to an image.
Latest
interface SkFontConstructor
import { type SkFontConstructor } from "https://deno.land/x/deno_chart@1.1.0/deps.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.