Fixed issue#39

This commit is contained in:
REDNBLACK 2017-04-16 18:07:32 +03:00
parent 993724f108
commit c812c992d5
3 changed files with 2 additions and 2 deletions

Binary file not shown.

BIN
data/Impact.ttf Normal file

Binary file not shown.

View File

@ -29,12 +29,12 @@ class Vzhuh(Base):
else:
result.append(text)
return '\r\n'.join(result)
return '\n'.join(result)
@staticmethod
def create_image(text):
img = Image.open("data/vzhuh_sample.png")
draw = ImageDraw.Draw(img)
font = ImageFont.truetype("data/Futura.ttc", 40, index=2)
font = ImageFont.truetype("data/Impact.ttf", 44, index=0)
draw.text((222, 280), text, (0, 0, 0), font=font)
img.save('data/sample-out.png')