fontjs
Version:
FontJS (Font.js) is a packages for TrueType font parsing and manipulation
26 lines (25 loc) • 809 B
TypeScript
import { SeqStream } from "bytestreamjs";
import { Matrix } from "../../Matrix";
import { Glyph, GlyphParameters } from "./Glyph";
export interface ComponentSimple {
glyphIndex: number;
flags: number;
matrix: Matrix;
}
export interface ComponentWithPoints extends ComponentSimple {
matchingPoint1: number;
matchingPoint2: number;
}
export declare type Component = ComponentSimple | ComponentWithPoints;
export interface CompoundGlyphParameters extends GlyphParameters {
components?: Component[];
instructions?: number[];
}
export declare class CompoundGlyph extends Glyph {
components: Component[];
instructions: number[];
constructor(parameters?: CompoundGlyphParameters);
static get className(): string;
decode(): void;
encode(stream: SeqStream): void;
}