Andrew Murray

Results 761 comments of Andrew Murray

You may or may not be interested in this - as a workaround for your situation, instead of drawing 'Ayo' in red and then 'A' and 'yo' in white and...

Despite not being able to replicate, how's this for another idea? If the problem is that the 'y' in 'Ayo' is moved right by the presence of the 'A', then...

Ok. If you're looking into other libraries, can this issue be closed for Pillow, or are you still interested in seeing a solution here?

The problem, at least for me, is that I can't replicate this - for my machine, this can be done with Pillow. If you've moved on from using Pillow for...

When I run my code with 'VA', there is a problem, but the pixels do not exactly match yours. However, that seems irrelevant, since that approach requires separation between the...

With the code from the original post, on my machine at least, I get ![original](https://user-images.githubusercontent.com/3112309/124383763-8e820400-dd11-11eb-9e17-64154ebc8132.png) If I replace ```python par_width, par_height = draw.textsize('par', font=font) ``` with ```python par_width = draw.textlength('par',...

I've figured out the last piece, creating PR #6722 to resolve this. Using `textlength` from my previous comment with that PR, the red vertical line at the end of 'i'...

Just to make the link, the starting issue for this topic is #2625

I would say this is the documented behaviour. https://pillow.readthedocs.io/en/stable/reference/Image.html#PIL.Image.Image.close > Closes the file pointer, if possible. Or are you trying to say that you think the behaviour should be changed,...

Pillow does value backwards compatibility. For context, `close()` has been part of Pillow since 2.5.0, and the idea of exclusive file pointers was only added afterwards, in 4.1.0. In 6.1.0...