Skip to main content
1 of 3
Lassi
  • 125
  • 2

Algorithm for line breaking in monospace text

Is there a de facto standard algorithm for finding good places to put line breaks in a paragraph of text rendered in a monospace font (e.g. to a text console)? The TeX algorithm (Breaking Paragraphs into Lines, Knuth & Plass 1981) is the go-to algorithm for fancy typesetting with variable-width fonts, but would something simpler be good enough for monospace text?

Lassi
  • 125
  • 2