/** * Justification tracking (`bodyText.maxJustifyTracking`, EF-65): the * tracking a line of a found break sequence takes, worked out again from * its items exactly as the breaker weighed it (see `adjustLine`), and spread * on the widths of its letters. */ import type { VDTLineSegment } from '../vdt.js'; import type { KPItem } from './types.js'; /** * Tracking (px after every character; negative tightens) of the line made * of `items[lineStart..breakAt)` broken at `breakAt`, `lineWidth` px wide, * with `trackingPerChar` px a character at most. 0 when its word spaces * alone set it within their limits, or it may take none. */ export declare function lineTracking(items: readonly KPItem[], lineStart: number, breakAt: number, lineWidth: number, trackingPerChar: number): number; /** Add `tracking` px a grapheme to the width of every text segment (word, * reference, script run) of a line; spaces, formulas, swatches and chips * keep theirs, and so does a word of a joining script, which the breaker * counted no character of (its letters connect). Two stacked scripts advance as far as the longer run: the * first keeps its zero width, the second takes the tracking of the longer * of the two (as the breaker counted their characters). Returns the width * added to the line. The change is linear in `tracking`, so the same call * with `-tracking` undoes it exactly (`raggedLooseLines`). */ export declare function trackSegments(segments: VDTLineSegment[], tracking: number): number; //# sourceMappingURL=tracking.d.ts.map