fontjs
Version:
FontJS (Font.js) is a packages for TrueType font parsing and manipulation
37 lines (36 loc) • 979 B
TypeScript
import { SeqStream } from "bytestreamjs";
import { FontTable } from "../Table";
export declare enum RangeGaspBehaviorFlags {
/**
* Use gridfitting
*/
GASP_GRIDFIT = 1,
/**
* Use grayscale rendering
*/
GASP_DOGRAY = 2,
/**
* Use gridfitting with ClearType symmetric smoothing. Only supported in version 1 'gasp'
*/
GASP_SYMMETRIC_GRIDFIT = 4,
/**
* Use smoothing along multiple axes with ClearType. Only supported in version 1 'gasp'
*/
GASP_SYMMETRIC_SMOOTHING = 8
}
export interface GASPRange {
rangeMaxPPEM: number;
rangeGaspBehavior: number;
}
export interface GASPParameters {
version?: number;
gaspRanges?: GASPRange[];
}
export declare class GASP extends FontTable {
version: number;
gaspRanges: GASPRange[];
constructor(parameters?: GASPParameters);
static get tag(): number;
toStream(stream: SeqStream): boolean;
static fromStream(stream: SeqStream): GASP;
}