fontjs
Version:
FontJS (Font.js) is a packages for TrueType font parsing and manipulation
25 lines (24 loc) • 774 B
TypeScript
import { SeqStream } from "bytestreamjs";
import { FontTable } from "../../Table";
import { LOCA } from "../LOCA";
import { Glyph } from "./Glyph";
export interface GLYFParameters {
glyphs?: Glyph[];
}
export declare class GLYF extends FontTable {
glyphs: Glyph[];
loca?: number[];
constructor(parameters?: GLYFParameters);
static get className(): string;
static get tag(): number;
toStream(stream: SeqStream): boolean;
/**
* Convert SeqStream data to object
* @param stream
* @param numGlyphs Value from 'maxp' table
* @param loca Reference to 'loca' table
* @returns Result of the function
*/
static fromStream(stream: SeqStream | undefined, numGlyphs: number, loca: LOCA): GLYF;
private static new;
}