davatron5000 / FitText.js

A jQuery plugin for inflating web type
http://fittextjs.com
6.75k stars 1.39k forks source link

Text doesn't resize to fit div #163

Closed Rvervuurt closed 7 years ago

Rvervuurt commented 7 years ago

I'm trying to use this plugin, but I'm running into the following problem:

The text is resized (or: it is a different size than it should, because of the plugin), but it's not made so big that it fills the whole div. See this fiddle

Or, if the text is very long (as in my example fiddle), it doesn't become a very small font, to fit in the div.

Am I doing something wrong? Since I don't know what text will be resized (the customer will change it to whatever they want, probably with a max-character-count on it though), I can't play around with the compressor.

davatron5000 commented 7 years ago

This is all in the Readme, but FitText does ratio-based resizing based on the Parent's width. If you want exact fitting text I recommend BigText or the SVG-based Fitter Happier Text