I am using Pillow 7.2.0 in Python 3 to insert text into an image with a fixed size.
I now want to insert text with a fixed font and font size into a specific width and have it justified, like a fixed text-box. The text should be justified within the text-box so it touches the left and right end. I don't see any documentation for how to do this.
What is the most reasonable method to do this?
I do want for it to be able to squish the text horizontally to fit the text-box without creating a second line, although it is seldom the case.
As a sidenote I was looking through the documentation for Pillow and was wondering what the anchor parameter does. I didn't find any explanation for it.
ImageDraw.text(... anchor=None, ...)
