Variable-weight text fitting engine — fill any rectangle with kinetic typography
-
Updated
Apr 16, 2026 - TypeScript
Variable-weight text fitting engine — fill any rectangle with kinetic typography
A simple, dependency-free JavaScript utility that dynamically adjusts the font size of text to make it fit perfectly within its parent container's width. This script is ideal for headlines, responsive titles, and any design where text needs to scale precisely with its containing element.
Smart text fitting with variable fonts, ink-box bounds, and algebraic solving
Add a description, image, and links to the text-fitting topic page so that developers can more easily learn about it.
To associate your repository with the text-fitting topic, visit your repo's landing page and select "manage topics."