Skip to content

Commit

Permalink
Do not draw normal text onto stroke text if they are the same color
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Jan 18, 2025
1 parent 4a7be8c commit eb0f060
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/PIL/ImageDraw.py
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,8 @@ def draw_text(ink: int, stroke_width: float = 0) -> None:
draw_text(stroke_ink, stroke_width)

# Draw normal text
draw_text(ink, 0)
if ink != stroke_ink:
draw_text(ink)
else:
# Only draw normal text
draw_text(ink)
Expand Down

0 comments on commit eb0f060

Please sign in to comment.