mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-25 00:34:14 +03:00
update TransposedFont.getlength error message
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
parent
0d91d13a6e
commit
f57a9d678c
|
@ -865,7 +865,7 @@ class TransposedFont:
|
|||
|
||||
def getlength(self, text, *args, **kwargs):
|
||||
if self.orientation in (Image.Transpose.ROTATE_90, Image.Transpose.ROTATE_270):
|
||||
raise ValueError("text length is undefined for rotated text")
|
||||
raise ValueError("text length is undefined for text rotated by 90 or 270 degrees")
|
||||
return self.font.getlength(text, *args, **kwargs)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user