Pretext: JavaScript/TypeScript library for multiline text measurement and layout
github.com