Merge pull request #7560 from radarhere/string_length_check

This commit is contained in:
Hugo van Kemenade 2023-12-21 12:55:37 +02:00 committed by GitHub
commit 0331d9d48b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -732,7 +732,6 @@ class TransposedFont:
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"
raise ValueError(msg)
_string_length_check(text)
return self.font.getlength(text, *args, **kwargs)