FAILURE MAP
← Case archive

FA-80290 / Typography line breaking / Member archive

Balanced headline wrapping: line count target · case 05

Balancing collapses to the original ragged wrap.

Member previewVariant 5 · 3 implementations · 8 checks per implementation

Case contract

Input [words, width]. Let L be the greedy line count at width (["overflow"] if a word is wider). Find the smallest width w (>= longest word) whose greedy wrap needs no more than L lines, then return the greedy wrap at w.

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: line count target["ink grid serif type baseline", "the baseline"]["ink grid serif type", "baseline the baseline"]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 ↗