mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-03 21:24:31 +03:00
flip so the conditional is positive
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
parent
ab86bdda0a
commit
995be34ddb
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user