import { OutlineSource } from './glyf-outline.js'; /** * Prepare an embedded CFF program for outline reading. * * @param program The raw `/FontFile3` bytes (bare CFF, or the `CFF ` table of * an OpenType wrapper — the caller unwraps that). * @returns A reader keyed by GLYPH INDEX, or `undefined` where the program * cannot be read. */ export declare function cffOutlineSource(program: Uint8Array): OutlineSource | undefined; /** * TN 5176 §13 — the NAME a CFF gives each glyph, inverted. * * A simple font selects its glyphs by name, not by index: `/Differences` says * code 2 is `g18`, and only the program's charset says which glyph `g18` is. * TAMReview.pdf sets most of its body in a Cambria subset named that way. * * @param program The raw CFF bytes. * @returns Glyph name → glyph index, or `undefined` for a CID-keyed program * (which names nothing) or one that cannot be read. */ export declare function cffNameToGid(program: Uint8Array): Map | undefined; /** * TN 5176 §10 — the CID a CID-keyed CFF gives each glyph, inverted. * * A `CIDFontType0C` program is charset-ordered by CID, not by glyph index, so a * composite font's code (its CID) is not the index into `CharStrings`. Where the * program is not CID-keyed the two are the same and this gives nothing. * * @param program The raw CFF bytes. * @returns CID → glyph index, or `undefined` for a program that is not * CID-keyed or cannot be read. */ export declare function cffCidToGid(program: Uint8Array): Map | undefined; /** The `CFF ` table of an OpenType wrapper, where the program is one. */ export declare function openTypeCff(program: Uint8Array): Uint8Array | undefined;