davatron5000 / FitText.js

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

text getting smaller when it should be getting bigger #65

Closed terrafrost closed 11 years ago

terrafrost commented 11 years ago

Sample code:

http://jsfiddle.net/dWXwg/

<div style="clear: both; width: 100px; height: 100px; background: blue" id="zzz">test</div>

<script>
$("#zzz").fitText();
</script>

Not only is the text not filling up the div - the text is getting smaller. Any ideas?

TrentWalton commented 11 years ago

Looks like you need to tweak the compression / numerical value -- http://jsfiddle.net/2TRqM/2/