Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix return value of FreeTypeFont.textsize() does not include font offsets #784
We should also be thinking about incorporating some of the metrics in a decent api, so that people can place the text accurately. That had come up in an issue or two before. (a: size is lost once youmake the font, and b: metrics are very ill defined from the various methods).
In PIL-1.1.7 and Pillow-2.1.0, ImageDraw#textsize() and ImageFont.textsize() return size of bounding box for text.
So I think this is a bug fix, not a breaking change.
of course, decent APIs are welcome.