react-dynamic-font icon indicating copy to clipboard operation
react-dynamic-font copied to clipboard

Set mininmum fontSize for component

Open escapingSamsara opened this issue 1 year ago • 2 comments

I know this is a super old project but today i was testing your component and found out it serves a project of mine pretty well. The only issue i have is that i need to set up a minimum fontSize for the components' content. Is there a way to implement this or a way on how to set something like this up ?

escapingSamsara avatar Oct 03 '23 11:10 escapingSamsara

It is possible, but the browser's built-in line wrapping functionality may not work as expected. This is because we are using transform: scale() to scale the font instead of changing the actual font size.

hronro avatar Dec 19 '23 08:12 hronro