Justification Algorithms Compared — Pretext Demo
Description: Side-by-side comparison of CSS/greedy, hyphenated, and optimal (Knuth-Plass) justification algorithms — powered by Pretext.

Built with Pretext by Maxwell Ingham GitHub Twitter

# Justification Algorithms Compared

Visualizes typography rivers, spacing variance, and how hyphenation and global line-breaking change justified text.

Column width 364px Toggle red visualizers
CSS / Greedy
Native browser justification
Pretext (Hyphenation)
Greedy with syllable-level hyphenation
Pretext (Knuth-Plass)
Optimal global line-breaking with syllable hyphenation