Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update fill_textbox to better respect rect.width
The function norm_words in fill_textbox had a bug in its last loop, appending n+1 characters when actually measuring width of n characters. It led to a bug in fill_texbox when you tried to write a single word mostly composed of "wide" letters (M,m, W, w...), causing the written text to exceed the given rect. The fix was just to replace n+1 by n.
- Loading branch information