Versions in this module Expand all Collapse all v0 v0.2.0 Aug 18, 2026 Changes in this version + const MaxBadRatio v0.1.0 Aug 18, 2026 Changes in this version + const InfPenalty + type Item struct + Depth float64 + Flagged bool + Height float64 + Kind ItemKind + Penalty float64 + R rune + Shrink float64 + Stretch float64 + Width float64 + func Box(w float64) Item + func Glue(w, stretch, shrink float64) Item + func Glyph(r rune, w, h, d float64) Item + func Penalty(w, p float64, flagged bool) Item + type ItemKind uint8 + const KBox + const KGlue + const KPenalty + type Line struct + End int + Ratio float64 + Start int + func KnuthPlass(items []Item, lineWidth, tolerance, linePenalty float64) ([]Line, bool)