Published
February 13, 2023
Updated
Want to fit single or multi-line text to the width or height of its container?
Use textFit.
Documentation
https://github.com/STRML/textFit
https://github.com/STRML/textFit/blob/master/textFit.js
Demonstration
https://codepen.io/memetican/pen/eYwBrQr/86e40c437f4a99154b33095b724a2db2
FAQs
Answers to frequently asked questions.