Pretext: TypeScript library for multiline text measurement and layout
Summary
Pretext is a pure JS/TS library for measuring and laying out multiline text without DOM layout, using the browser font engine for accuracy. It provides APIs to measure height and perform manual line layout, with multilingual support and performance benchmarks showing fast times.