STRML / textFit

A jQuery-free component that quickly fits single and multi-line text to the width (and optionally height) of its container.
https://textfit.strml.net
637 stars 123 forks source link

Support 'em' unit for min and max font-size #30

Open sebastientromp opened 7 years ago

sebastientromp commented 7 years ago

Hello,

In my use case, the size of the divs vary depending on the resolution of the user's screen and how they decide to display the page, so I can't use fixed sizes for min and max font-size.

Do you have any plans to allow for 'em' units for these options?

Cheers!

Seb

philipstratford commented 5 years ago

I was hoping for the same option. Better still, allow a unit to be included in the min and max font size options.