UNPKG

fontjs

Version:

FontJS (Font.js) is a packages for TrueType font parsing and manipulation

19 lines (18 loc) 1.36 kB
import { SeqStream } from "bytestreamjs"; export declare function unicodePointsToCodePoints(unicodePoints: number[], utf16?: boolean, be?: boolean, includeBOM?: boolean): number[]; export declare function stringToCodePoints(str: string, utf16?: boolean, be?: boolean, includeBOM?: boolean): number[]; export declare function stringToUnicode(str: string, utf16?: boolean, be?: boolean, includeBOM?: boolean): string; export declare function unicodeToString(unicode: string, utf16?: boolean, be?: boolean, includeBOM?: boolean): string; export declare function stringToUnicodeHex(str: string, utf16?: boolean, be?: boolean, includeBOM?: boolean): string; export declare function unicodeHexToString(unicode: string, utf16?: boolean, be?: boolean, includeBOM?: boolean): string; export declare function getLongDateTime(stream: SeqStream): Date; export declare function appendLongDateTime(date: Date, stream: SeqStream): void; export declare function getF2Dot14(stream: SeqStream): number; export declare function appendF2Dot14(value: number, stream: SeqStream): void; export declare function checkFlag(flag: number, mask: number): boolean; /** * 16.16-bit signed fixed-point number */ export declare type Fixed = number; export declare function getFixed(stream: SeqStream): number; export declare function appendFixed(value: number, stream: SeqStream): void;