-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Improve tests after removing deprecated textsize #100
Conversation
…NTAINER, deprecated in 8.2.0
Thanks!
The intent of "Check (w,h) of box a is (h,w) of box b" (-> "aha, so they must be the same but rotated") is much clearer than "Check bbox b is (20, 20, 20 + h, 20 + w)" -> ("hmm, where did these magic numbers come from? ah, okay, they're the original ones, plus we're calculating etc etc..."). So given a failure, I think the former is more readily debuggable. Can we remove the latter ones instead? |
I've included a version of this in python-pillow#7080 |
For python-pillow#7059.
Changes proposed in this pull request:
ImageDraw2.textsize
, modify it forImageDraw2.textbbox
test_imagefont
: