import type { TableRecord, Tag } from "../../types.ts"; import type { Reader } from "../binary/reader.ts"; /** Font directory containing table records */ export interface FontDirectory { sfntVersion: number; numTables: number; searchRange: number; entrySelector: number; rangeShift: number; tables: Map; } /** * Parse the sfnt font directory (table of contents). * This is the first thing read from any TrueType/OpenType font. */ export declare function parseFontDirectory(reader: Reader): FontDirectory; /** Check if this is a TrueType font (vs CFF) */ export declare function isTrueType(directory: FontDirectory): boolean; /** Check if this is a CFF font */ export declare function isCFF(directory: FontDirectory): boolean;