FAILURE MAP
← Case archive

FA-80099 / Typography line breaking / Member archive

Drop cap shaped paragraph: cap line count · case 04

One line too many is narrowed around the drop cap.

Member previewVariant 4 · 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 line count[[2, 6], [2, 10], [1, 6], [1, 5]][[2, 6], [2, 10], [2, 12]]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 ↗