davatron5000 / FitText.js

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

Doesn't work proper with one word only? #116

Closed marcelhadorn closed 10 years ago

marcelhadorn commented 10 years ago

To me it seems like it downsizes titles too much, especially on short words, see this example: http://duotones.ch/article/spring.html

While it works perfectly on this example: http://duotones.ch/article/naturkostbar.html

Settings are the following:


jQuery(".fittext").fitText(0.87, { minFontSize: '30px', maxFontSize: '119px' });

or am I missing something?

charliewilco commented 10 years ago

working fine on word here.

http://arwhd.co/

davatron5000 commented 10 years ago

Keep playing with it, I think you'll have to adjust your compressor based on the word length to achieve the effect you want. If you want a "Always make it fit full width" solution, check out Slab Text or Big Text

marcelhadorn commented 10 years ago

@davatron5000 it seems to me that fittext.js always looks for the longest text and adjust all others to the same size. but thanks for the tips.

aabdolla commented 8 years ago

@Marc3llo Did you ever find a solution for the one word problem?

marcelhadorn commented 7 years ago

@aabdolla I honestly can't remember if I did or just headed for a different solution, sorry.