flip so the conditional is positive

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
Ondrej Baranovič 2022-04-17 19:27:14 +02:00 committed by GitHub
parent ab86bdda0a
commit 995be34ddb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -683,10 +683,10 @@ class FreeTypeFont:
:py:mod:`PIL.Image.core` interface module, and the text offset, the
gap between the starting coordinate and the first marking
"""
if fill is not _UNSPECIFIED:
deprecate("fill", 10)
else:
if fill is _UNSPECIFIED:
fill = Image.core.fill
else:
deprecate("fill", 10)
size, offset = self.font.getsize(
text, mode, direction, features, language, anchor
)