Skip to content
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

shrinkwrap on a word by word basis #7

Open
paul-lrr opened this issue Feb 26, 2020 · 0 comments
Open

shrinkwrap on a word by word basis #7

paul-lrr opened this issue Feb 26, 2020 · 0 comments

Comments

@paul-lrr
Copy link

Hi there,
Could there be a way to tell the shrinkwrap text wrapping algorithm to prioritize not breaking words? I have a situation where I want some text to fit into small square buttons and the current system results in a lot of words with one or two characters broken on to the next line. I could decrease the overall text size, but that would result in buttons with small words being shrunk unnecessarily. I guess my ideal scenario would be a setting where the text is first scaled to fit the longest word on one line and then is it wrapped on spaces as normal.

Canvas-plus is super useful and already seems to be one of the best libraries for handling tricky text wrapping, but I guess want more 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant