/** * Inline symbols (`:icon[alt]{…}`, #1058, DESIGN §12.5): the size of the * box each kind takes on a line. The box stands on the baseline (or reaches * `drop` ems below it, #1248); its * height is the text's capital height (0.75 em, as a swatch's side) unless * `size` gives it in ems. A picture keeps its proportions, a glyph is set * at the size whose capitals are that high and takes its advance, and a * line sample is twice as long as it is high, its stroke at half height. */ import type { InlineIcon } from '../parse/index.js'; import type { ResolvedResourceBlock, VDTInlineIcon } from '../vdt.js'; /** The height of a capital, in ems: an icon's default height. */ export declare const ICON_CAP_EM = 0.75; /** The symbol `icon` measured against the text's `font` (a CSS font * string): its box and what the painters need. `color` is the tint as * resolved (a hex), `''` for none. */ export declare function measureInlineIcon(icon: InlineIcon, color: string, font: string): VDTInlineIcon; /** The dash pattern of a line sample (px, on and off), none when solid. * A dotted line is drawn with round caps: dots of zero length. */ export declare function iconLineDash(icon: Pick): number[] | undefined; /** The inline symbols a resource block paints (#1058): in its caption, * its notes, its labels and its table's cells. What a renderer that * embeds pictures up front (the PDF) reads. */ export declare function resourceBlockIcons(rb: ResolvedResourceBlock | undefined): VDTInlineIcon[]; /** Where a symbol is drawn on its segment: its box from the segment's left * edge `x` and the line's `baseline`, the baseline a glyph is set on (the * line's, lowered by the icon's drop), and, for a line sample, the stroke's * ends at half height. */ export declare function inlineIconBox(icon: VDTInlineIcon, x: number, baseline: number): { x: number; y: number; width: number; height: number; strokeY: number; baseline: number; }; //# sourceMappingURL=inlineIcon.d.ts.map