-
-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiline doesn't upscale text after breaking it #41
Comments
Please supply a test case |
Here it is: https://codepen.io/ciriousjoker/pen/vMEBZN Set view to side by side and resize until the text wraps into the second line. Notice how the font size stays the same as directly before wrapping. |
Ah, okay, now I understand. Fitty simply doesn't rescale wrapped text. It only handles single lines. You'd have to split the line yourself. |
Then I don't get how Multiline works. I thought Multiline is the same as Singleline in that it rescales until the minimum font size and when it doesn't work anymore it splits it into two lines and starts from max fitting font size again. Since it's not that way, do you have any plans to implement that? |
It will force text on multiple lines if it no longer fits the container (if minSize reached). It would require a totally different approach, as I'm super busy with other projects I don't have the time to look into it. |
Ok, no problem, I found another solution in my case. |
@ciriousjoker Would you mind sharing your solution? I'm also looking for a nice way to do that! Thanks! 🍻 |
@HugoHenault Sorry, not really. I just made the surroundings look nice so it doesn't look bad. Far from perfect, but works for us. |
"Some word" fits into a container.
Then the container shrinks and it becomes
"Some
word".
Now, there would be enough width available to scale the text up, but it's not happening :(
The text was updated successfully, but these errors were encountered: