mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-30 18:03:07 +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 fill
|
||||||
return ink
|
return ink
|
||||||
|
|
||||||
def drawText(ink, stroke_width=0, stroke_offset=None):
|
def draw_text(ink, stroke_width=0, stroke_offset=None):
|
||||||
coord = xy
|
coord = xy
|
||||||
try:
|
try:
|
||||||
mask, offset = font.getmask2(
|
mask, offset = font.getmask2(
|
||||||
|
@ -343,13 +343,13 @@ class ImageDraw(object):
|
||||||
|
|
||||||
if stroke_ink is not None:
|
if stroke_ink is not None:
|
||||||
# Draw stroked text
|
# Draw stroked text
|
||||||
drawText(stroke_ink, stroke_width)
|
draw_text(stroke_ink, stroke_width)
|
||||||
|
|
||||||
# Draw normal text
|
# Draw normal text
|
||||||
drawText(ink, 0, (stroke_width, stroke_width))
|
draw_text(ink, 0, (stroke_width, stroke_width))
|
||||||
else:
|
else:
|
||||||
# Only draw normal text
|
# Only draw normal text
|
||||||
drawText(ink)
|
draw_text(ink)
|
||||||
|
|
||||||
def multiline_text(
|
def multiline_text(
|
||||||
self,
|
self,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user