-
-
Notifications
You must be signed in to change notification settings - Fork 807
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
wrap text needed in draw_string_in_rect() #71
Comments
put into GuiLite source would look a bit different, but this is a starting point if it helps. inserting \n was a nonstarter
|
also worth looking at existing code
if char == \n you could increase a y offset and reset x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
draw_string_in_rect() has align_type argument but does not have an in-built option to wrap (clip) text. Instead of allowing text to run out of the rectangle, it should be able to 'insert' a new line each time until the bottom of the rectangle and then also stop at the bottom of the rectangle
If an existing example / workaround exists, please advise. I see get_str_size() is available
The text was updated successfully, but these errors were encountered: