mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-03 20:53:08 +03:00
ucase(font_path,font_size)
This commit is contained in:
parent
552effb90d
commit
b5c3eb5830
|
@ -74,7 +74,7 @@ try:
|
||||||
def test_textsize_equal(self):
|
def test_textsize_equal(self):
|
||||||
im = Image.new(mode='RGB', size=(300, 100))
|
im = Image.new(mode='RGB', size=(300, 100))
|
||||||
draw = ImageDraw.Draw(im)
|
draw = ImageDraw.Draw(im)
|
||||||
ttf = ImageFont.truetype(font_path, font_size)
|
ttf = ImageFont.truetype(FONT_PATH, FONT_SIZE)
|
||||||
|
|
||||||
txt = "Hello World!"
|
txt = "Hello World!"
|
||||||
size = draw.textsize(txt, ttf)
|
size = draw.textsize(txt, ttf)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user