Skip to content
Shapemetry

Model - Font

API reference for src/schema/domains/font, src/nodeMethods/font on @huukhanhnguyen/model, reachable from ., ./compute.

See the Guide for the ModelJSON / evaluate pipeline.

API reference

Signatures are generated from the live package .d.ts - not hand-written.

FontData

type

A font registered in the kernel's font registry. ids is the shaping fallback chain every Text.* export takes — the first font covering a cluster supplies it. One entry today; the array IS the wire format, so it is stored rather than rebuilt per call.

type FontData
// = {
    readonly ids: Uint32Array;
    readonly name: string;
}

parse

function

parse(expr: string): Expression
Last updated: 📖 1 min readEdit on GitHub