Skip to content

shrinkwrap on a word by word basis #7

@paul-lrr

Description

@paul-lrr

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 😄

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions