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

Allowed text method to pass on multiline_text method specific arguments #1647

Merged
merged 3 commits into from
Feb 1, 2016

Conversation

radarhere
Copy link
Member

Resolves #1645

@troygrosfield
Copy link

👍

@wiredfool
Copy link
Member

Can you add in the new parameters to docs/reference/ImageDraw.rst?

@radarhere
Copy link
Member Author

Okay, I've added documentation. Let me know if you have any thoughts. I wasn't quite sure whether to specify the additional arguments individually, or to just reference args and kwargs.

@@ -121,6 +121,7 @@ def test_textsize_equal(self):
size = draw.textsize(txt, ttf)
draw.text((10, 10), txt, font=ttf)
draw.rectangle((10, 10, 10 + size[0], 10 + size[1]))
del draw
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you adding del draw to all the tests?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My understanding is that del draw performs a cleanup operation to save memory. It was present on some tests, but not others. If you'd like to go the other way, and remove it in order to reduce unnecessary lines of code in the test suite, just say the word.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wondering, as that seems to be an unrelated change in the test suite.

wiredfool added a commit that referenced this pull request Feb 1, 2016
Allowed text method to pass on multiline_text method specific arguments
@wiredfool wiredfool merged commit c09ba49 into python-pillow:master Feb 1, 2016
@radarhere radarhere deleted the multiline branch February 1, 2016 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants