davatron5000 / FitText.js

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

Min font-size #2

Closed gosseti closed 13 years ago

gosseti commented 13 years ago

Would be great to have a minimum font size cut off.

It could safeguard primary headings getting smaller than secondary ones—keeping typographic hierarchy intact.

parkr commented 13 years ago

Or scaling proportionally?

davatron5000 commented 13 years ago

Added min-font-size in a branch. If enough people like/use it, we could fold it in.

https://github.com/davatron5000/FitText.js/blob/min-font-size/jquery.fittext.js

It's added as an optional parameter. To specify a min-font-size, you would need 2 parameters: $(element).fitText( 1.2, '100px' );