FAILURE MAP
← Case archive

FA-80105 / Typography line breaking / Member archive

Drop cap shaped paragraph: cap gutter · case 05

Text beside the drop cap touches the cap.

Member previewVariant 5 · 3 implementations · 8 checks per implementation

Case contract

Input [word widths, width, cap lines, cap width, gap, indent]. With a drop cap its first letter moves into the cap (first word loses one unit) and the first cap-lines lines are narrowed by cap width + gap; the first-line indent applies only without a cap. Greedy fill with unit spaces; a word too wide for an empty line is set alone. Return [[words on line, used width]].

Why this case matters

Line breaking decides where paragraphs wrap on screen and in print; a wrong decision point shifts every following line.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
regression: cap gutter[[1, 5], [1, 6], [3, 7]][[1, 5], [1, 6], [2, 5], [1, 1]]Failed

MEMBER ARCHIVE

The complete case is available to members.

This record includes three runnable implementations, regression fixtures, execution results, and source hashes.

Member access is invitation-based. Sign in with your invited account to inspect the sources.

Sign in to the archive ↗