API Reference
Explore the comprehensive API reference of Pretext, a blazing fast, zero-DOM JavaScript library designed for robust and universal text measurement. Built for developers aiming to unblock layout innovation, Pretext offers a simple yet powerful API to integrate precise text metrics seamlessly into your projects.
Whether you're benchmarking performance, integrating into complex UI systems, or experimenting with layout techniques, Pretext's straightforward API makes it easy to measure text size accurately and efficiently. Fully open-source under the MIT license, it empowers you to build next-level production UIs with confidence and speed.