
Description
Knowing how wide text will be and where it wraps usually means rendering to the DOM and measuring, slow and layout-thrashing. Pretext from React core member chenglou is a fast, accurate, comprehensive text measurement and layout library.
It computes sizes and line breaks without the DOM, handles many languages and complex layout, ideal for virtual lists and canvas rendering.
No DOM:Direct measurement.
Line breaks:Multilingual.
Fast:No reflows.
Canvas:Friendly.
It computes sizes and line breaks without the DOM, handles many languages and complex layout, ideal for virtual lists and canvas rendering.
Features
No DOM:Direct measurement.
Line breaks:Multilingual.
Fast:No reflows.
Canvas:Friendly.
