Font-To-Width: a plugin to adjust text lines width

Font-To-Width: a plugin to adjust text lines width

Font‑To‑Width is a script by Nick Sherman and Chris Lewis that takes advantage of large type families to fit pieces of text snugly within their containers. Unlike other text-fitting tools like FitText.js, Font‑To‑Width does not scale the font-size (at least not by default). Instead, it chooses a width or weight variant according to what fits best, and then allows for letter- and word-spacing adjustments as needed.

Project page   View on Github