3 ms·
Line breaking. The Knuth-Plass algorithm I implemented is my all-time favorite piece of code.
by thechao 9y ago
Line breaking. The Knuth-Plass algorithm I implemented is my all-time favorite piece of code.
- baddox 9y agoThat’s one of my favorites too, although I remember it being one of the easier implementations from my college course. We just did it with fixed width fonts, of course, but the results were still so impressing.