FAILURE MAP
← Case archive

FA-80124 / Typography line breaking / Member archive

Drop cap shaped paragraph: overwide word placement · case 04

Empty lines are emitted before words wider than the shaped measure.

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: overwide word placement[[0, 0], [1, 7], [1, 7], [2, 12], [1, 8], [2, 10], [1, 4]][[1, 7], [1, 7], [1, 3], [1, 8], [1, 8], [2, 10], [1, 4]]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 ↗