Skip to main content
Module

x/targadactyl/deps.ts>Typeface

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

See SkTypeface.h for more on this class. The objects are opaque.

Methods

getGlyphIDs(
str: string,
numCodePoints?: number,
output?: GlyphIDArray,
): GlyphIDArray

Retrieves the glyph ids for each code point in the provided string. Note that glyph IDs are typeface-dependent; different faces may have different ids for the same code point.