davatron5000 / FitText.js

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

Introduces configurable width factor #91

Closed gusaaaaa closed 10 years ago

gusaaaaa commented 11 years ago

This commit allows to configure the factor by which the element's width is divided by in order to calculate the font size.

davatron5000 commented 10 years ago

Hi there. Just wanted to ask if you could explain the use case here? Why modify the divisor? Do you have a demo of this behavior in production somewhere?

davatron5000 commented 10 years ago

Thanks for the idea, but I think the math works out that you could modify the compressor to get the same value.

compressor: 1, factor: 5 => 1*5 == 5 // This PR
compressor: 0.5, defacto: 10 => 0.5*10 == 5 // Current setup
gusaaaaa commented 10 years ago

Sorry I missed your comment. Thanks anyway :)