patrickmarabeas / ng-FitText.js

An AngularJS directive for inflating web type.
http://patrickmarabeas.github.io/ng-FitText.js
MIT License
222 stars 61 forks source link

Can we adapt the font of multiples fitText using the max height of parent ? #27

Open djonatanb opened 9 years ago

djonatanb commented 9 years ago

I have 5 lines of text controlled by FitText, it is not mandatory to fill the 5 lines though, so I keep the max font size high. If the user enter 1 letter for each field though the height of the element exceeds it's limits and goes over the rest of the elements below. Is there anyway that I could set a maximum parent height and adapt the fonts according to that too ?

patrickmarabeas commented 8 years ago

As in max height of each line would be the max parent height divided by number of lines?

(sorry for delay!)