/** * Embedded display faces. * * A theme opts into a bundled face by naming its namespaced family (for example * `AK Geist`) in a font stack. The compiler then inlines that family as a * `data:` WOFF2, so the artifact still opens offline and makes no request; the * CSP widens `font-src` to `data:` only on pages that carry a face. * * Each family ships two subsets. Latin is always emitted; Vietnamese is emitted * only when the page text uses a character the Latin subset lacks, so an English * page does not pay for it. A family no stack names is never emitted. */ import type { ResolvedTheme } from '../theme/load-theme.js'; import { type EmbeddedFont } from './embedded-fonts.generated.js'; /** Bundled families named by any of the theme's font stacks, in bundle order. */ export declare function embeddedFamilies(theme: ResolvedTheme): EmbeddedFont[]; /** * The `@font-face` rules a page needs, or an empty string. `text` is the * rendered page text the faces must cover; it only decides the subsets. */ export declare function embeddedFontCss(theme: ResolvedTheme, text: string): string; //# sourceMappingURL=font-faces.d.ts.map