From @s3ththompson@mastodon.social

"swiss-style" / flattersatz ragged text on the web...

pretext makes it easy to explore different tradeoffs / constraints around tracking / word spacing / glyph sizing

https://seththompson.com/labs/flattersatz/

Pretext is a recently released TypeScript library for multiline text measurement and layout that bypasses DOM measurements:
https://github.com/chenglou/pretext