Text dimensions were a side effect of rendering — to know them, you had to render. Pretext makes text measurement a pure function: text + font + width → lines, heights, widths — no DOM, no rendering.
Bib
Text dimensions were a side effect of rendering — to know them, you had to render. Pretext makes text measurement a pure function: text + font + width → lines, heights, widths — no DOM, no rendering.