View it on GitHub Download ZIP Download TAR @patrickmarabeas

rustled my jimmies jimmies jimmies

ng-FitText.js makes font-sizes flexible. Use this directive in your fluid or responsive layout to achieve scalable headlines that fill the width of a parent element.

And if you just happen

to need the line-height preserved

ng-FitText.js can do that too, at the same price

spoiler: it's free

Inherit max font size from CSS

Inherit min font size from CSS

Child block elements will use font size of longest element

some text here lolol

Child inline elements can also be used as expected

some text here lolol

Full README can be found on GitHub

Install and Inclusion

Grab it with Bower:

bower install ngFitText

Include it in your AngularJS application

var myApp = angular.module( 'myApp', [ 'ngFitText' ] );

Apply it to your text

<h1 data-fittext>FitText</h1>