/** * Bundled terminal fonts for restty — Ghostty-like coverage without CDN. * * Ghostty embeds JetBrains Mono + built-in Nerd Fonts. Restty’s default chain * does the same via local faces + jsdelivr. We ship the full mono weight set * plus Symbols Nerd Font so overriding `terminal.fonts` does not produce tofu. * * Assets (under packages/sdk/assets/fonts/): * JetBrainsMonoNLNerdFontMono-{Regular,Bold,Italic,BoldItalic}.ttf * SymbolsNerdFont-Regular.ttf */ export type BundledFontFace = { data: ArrayBuffer; name: string; weight: number; style: 'normal' | 'italic'; }; /** Restty-compatible font input (buffer or local family). */ export type ResttyFontInputLike = { data: ArrayBuffer; name: string; weight?: number; style?: 'normal' | 'italic' | 'oblique'; } | { family: string; local?: 'prefer' | 'require'; name?: string; weight?: number; style?: 'normal' | 'italic' | 'oblique'; }; type FontSpec = { file: string; name: string; weight: number; style: 'normal' | 'italic'; }; /** Matches restty DEFAULT_FONT_INPUTS naming for style selection. */ declare const BUNDLED_SPECS: FontSpec[]; export declare function loadBundledFontFace(spec: FontSpec): Promise; /** * Load primary mono face (Nerd Font Mono Regular when available). */ export declare function loadBundledMonoFont(): Promise; export declare function bundledFontResttyInput(face: BundledFontFace): { data: ArrayBuffer; name: string; weight: number; style: 'normal' | 'italic'; }; /** * Restty font chain approximating Ghostty + restty DEFAULT_FONT_INPUTS: * Regular/Bold/Italic/BoldItalic Nerd Mono → Symbols Nerd Font → * local nerd/emoji/system mono faces. */ export declare function buildResttyFontChain(): Promise; /** True when all critical glyph-coverage faces are present. */ export declare function hasBundledNerdCoverage(): Promise; export { BUNDLED_SPECS }; //# sourceMappingURL=bundled-font.d.ts.map