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

Word-wrap text #6

Open
magicmonkey opened this issue May 16, 2020 · 4 comments
Open

Word-wrap text #6

magicmonkey opened this issue May 16, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@magicmonkey
Copy link
Owner

Currently text draws on a single line. Would be good to word-wrap it, although as it isn't a fixed-width font, this will involve some tricky maths.

@magicmonkey
Copy link
Owner Author

An interim solution for this is to let the user pass their own multi-line string as a slice

@magicmonkey magicmonkey added the enhancement New feature or request label Jun 7, 2020
@carpii
Copy link

carpii commented Jan 22, 2023

Is this library still being maintained? If a PR is likely to be accepted, I'll spend a bit of time restoring backwards-compat

I've been working on adding support for multiline text (plus x and y margins, and also justification).
I'm not sure a fully featured wordwrap is that useful given the very small dimensions. I chose to just allow \n in mulitline text, instead of passing a slice of strings.

(excuse the crappy iphone photo, I didn't feel like dumping the image for each button)

@magicmonkey
Copy link
Owner Author

magicmonkey commented Jan 22, 2023 via email

@carpii
Copy link

carpii commented Jan 22, 2023

Thanks, that's good to know

I'll do a bit more testing and submit a PR

Cheers

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

No branches or pull requests

2 participants