mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 18:26:17 +03:00
Renamed method
Co-Authored-By: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
parent
f93a5d0972
commit
e790a4066a
|
@ -303,7 +303,7 @@ class ImageDraw(object):
|
|||
return fill
|
||||
return ink
|
||||
|
||||
def drawText(ink, stroke_width=0, stroke_offset=None):
|
||||
def draw_text(ink, stroke_width=0, stroke_offset=None):
|
||||
coord = xy
|
||||
try:
|
||||
mask, offset = font.getmask2(
|
||||
|
@ -343,13 +343,13 @@ class ImageDraw(object):
|
|||
|
||||
if stroke_ink is not None:
|
||||
# Draw stroked text
|
||||
drawText(stroke_ink, stroke_width)
|
||||
draw_text(stroke_ink, stroke_width)
|
||||
|
||||
# Draw normal text
|
||||
drawText(ink, 0, (stroke_width, stroke_width))
|
||||
draw_text(ink, 0, (stroke_width, stroke_width))
|
||||
else:
|
||||
# Only draw normal text
|
||||
drawText(ink)
|
||||
draw_text(ink)
|
||||
|
||||
def multiline_text(
|
||||
self,
|
||||
|
|
Loading…
Reference in New Issue
Block a user