README.md

textFit v2.1.0

Browser Support

textFit supports IE9+, Firefox, Chrome, Opera, and most mobile browsers. If you find an incompatibility,
please file an issue.

If you require IE <= 8 support, please use the jQuery version.
Functionality is identical between v1.0 and v2.0, the only change was the removal of the jQuery dependency.

Changelog

v2.1.1

Fixed a bug with alignVert when reprocessing.

Added full UMD shim and published to npm.

v2.1

Reworked alignVert.

reProcess is now true by default. Set to false if you want to fire-and-forget on potentially
processed nodes. This was originally false by default because it was being used in an infinite scrolling list.

Implementation Details

To ensure accurate results with various font-faces, line-heights, and letter-spacings, textFit resizes the text
until it fits the box as accurately as possible. Unlike many similar plugins, textFit uses binary search to
find the correct fit, which speeds the process significantly. textFit() is fast enough to use in production
websites.