Closed galli-leo closed 8 years ago
Hi @DJLectr0, thanks for submitting this. Sorry it didn't get merged, I've been working on a word wrap implementation that uses Font.metrics(), and also does truncation (https://github.com/tingbot/tingbot-python/blob/master/tingbot/typesetter.py). That's merged now, so I'm closing this PR out.
This pull request enables auto word wrapping for text. This means that if the text would flow over the screen, it is prevented. It also adds the possibility of getting back the size of the text created. This allows for better layout managing.
Before:
After:
Example: