UNPKG

gedcom-ts

Version:

TypeScript GEDCOM toolkit for browser apps: import .ged/.zip, edit typed genealogy data, and export GEDCOM or GEDZIP.

15 lines (14 loc) 992 B
import type { BookletLocale } from './booklet-locale'; /** Locales whose PDF body text needs a Unicode-capable font (StandardFonts are Latin-1 only). */ export declare function localeNeedsUnicodePdfFont(locale?: BookletLocale): boolean; /** Registers preloaded font bytes (host app explicit chunk import). */ export declare function registerBookletPdfFontBytes(locale: BookletLocale, bytes: Uint8Array): void; /** Clears cached font bytes (tests / forced reload). */ export declare function clearBookletPdfFontCache(): void; /** * Lazy-loads subset Noto font bytes for zh / ar / he (separate chunks, not in the main bundle). * Pass `override` to replace the built-in font. */ export declare function loadBookletPdfFontBytes(locale?: BookletLocale, override?: Uint8Array, contentText?: string): Promise<Uint8Array | undefined>; /** Returns cached bundled font bytes when already loaded. */ export declare function bundledBookletPdfFontBytes(locale?: BookletLocale): Uint8Array | undefined;