fontjs
Version:
FontJS (Font.js) is a packages for TrueType font parsing and manipulation
34 lines (33 loc) • 1.15 kB
TypeScript
import { SeqStream } from "bytestreamjs";
import { Glyph } from "../GLYF/Glyph";
import { CMAPSubTable, CMAPSubTableParameters, GlyphMap } from "./CMAPSubTable";
export interface Format6Parameters extends CMAPSubTableParameters {
language?: number;
firstCode?: number;
glyphIndexArray?: number[];
}
export declare class Format6 extends CMAPSubTable {
protected onGetGlyphMap(): GlyphMap;
/**
* Format number is set to 6
*/
get format(): 6;
language: number;
firstCode: number;
glyphIndexArray: number[];
constructor(parameters?: Format6Parameters);
static get className(): string;
toStream(stream: SeqStream): boolean;
static fromStream(stream: SeqStream): Format6;
/**
* Make Format6 table directly from array of glyphs
* @param language
* @param glyphs Array of glyphs
* @param firstCode
* @param platformID
* @param platformSpecificID
*/
static fromGlyphs(language: number, glyphs: Glyph[], firstCode?: number, platformID?: number, platformSpecificID?: number): Format6;
gid(code: number): number;
code(gid: number): number[];
}