TLDR · PROGRAMMING, DESIGN & DATA SCIENCE
PRETEXT
Summary from the TLDR newsletter
Pretext is a browser library that solves the problem of calculating the height of a paragraph of line-wrapped text without touching the DOM. It uses a clever array of tricks to make the process faster and enable all sorts of new text rendering effects. Pretext supports all languages, including Korean mixed with RTL Arabic and platform-specific emojis. A demo is available in the article.