Cheng Lou, a Midjourney engineer, recently released Pretext, a 15KB open-source TypeScript library that measures and lays out ...
It allows developers to treat text as a fluid substance that can be recalculated every single frame without dropping a beat.
This was posted by the creator, Cheng Lou, himself on March 28, 2026. 'A fast, accurate, and comprehensive text measurement algorithm written in pure TypeScript.' 'Can be used for the layout of the ...