Removed unnecessary string length check

This commit is contained in:
Andrew Murray 2023-11-17 17:41:47 +11:00
parent 28c173f8d4
commit 524b823c1b

View File

@ -712,7 +712,6 @@ class TransposedFont:
if self.orientation in (Image.Transpose.ROTATE_90, Image.Transpose.ROTATE_270): if self.orientation in (Image.Transpose.ROTATE_90, Image.Transpose.ROTATE_270):
msg = "text length is undefined for text rotated by 90 or 270 degrees" msg = "text length is undefined for text rotated by 90 or 270 degrees"
raise ValueError(msg) raise ValueError(msg)
_string_length_check(text)
return self.font.getlength(text, *args, **kwargs) return self.font.getlength(text, *args, **kwargs)