/** * The faces a document's comic pages are lettered in (#559), for hosts * that load fonts before a build: the lettering face, every balloon * style's own face (the sound-effect face among them) and the cast's. The * defaults follow the document language (`Comic Neue`, `Zen Antique` for * Japanese, `Bangers` for sound effects…), so a book that never names them * still needs them as soon as it has a `:::page`. */ import type { PostextConfig } from '../types.js'; /** Whether a Markdown text (or any of several, the chapters of a book) * holds a comic page or strip. */ export declare function markdownHasComics(markdown: string | readonly string[] | undefined): boolean; /** * The families the comic script lines of a text name themselves (#696): * `sfx{font="Dela Gothic One"}: ドン` sets that line in a face the * configuration never mentions (`comicLetteringStyle` takes it before the * cast's and the style's). Read with the comic parser, so a commented * line, or a `font=` outside a comic block, counts for nothing. First * seen first. */ export declare function comicLineFontFamilies(markdown: string | readonly string[] | undefined): string[]; /** * The families the comic pages of a document letter with: none when the * config has no `comics` section and no text given holds a comic block; * else the lettering face, each balloon style's and each cast member's * (defaults resolved for the document language), then the ones the script * lines name themselves ({@link comicLineFontFamilies}), first seen first. */ export declare function comicFontFamilies(config: PostextConfig, markdown?: string | readonly string[]): string[]; /** One face a comic line is lettered in, at the weight and slant the * layout sets it (`comicLetteringStyle`). */ export interface ComicFontUse { family: string; weight: number; style: 'normal' | 'italic'; } /** * The weights and slants the comic pages of a document letter in (#1047): * for each script line, the balloon style it picks (its own, its * speaker's, its role's, else speech) and the face it ends up in (the * line's `font=`, the speaker's, the style's, else the lettering's), at * 700 when the style's `bold` (else the lettering's) is set, slanted when * its `italic` is and the script has italics. Without the text, every * balloon style in its face and in each cast member's. Built-in styles * resolved with the configuration's entries laid over them, so the shout's * bold counts though no configuration writes it. */ export declare function comicFontUses(config: PostextConfig, markdown?: string | readonly string[]): ComicFontUse[]; //# sourceMappingURL=fonts.d.ts.map