mirror of
https://github.com/Xevion/v1.xevion.dev.git
synced 2025-12-08 16:08:59 -06:00
now
This commit is contained in:
@@ -44,15 +44,7 @@ def create_panzer(string):
|
||||
draw.text((10, 20), 'Oh panzer of the lake, what is your wisdom?', font=font1)
|
||||
|
||||
font2 = ImageFont.truetype('./app/static/arial.ttf', size=30)
|
||||
|
||||
w, h = img.size
|
||||
lines = wrap(string, width=400)
|
||||
y_text = h
|
||||
for line in lines:
|
||||
width, height = font2.getsize(line)
|
||||
draw.text(((w - width) / 2, y_text), line, font=font2)
|
||||
y_text += height
|
||||
# draw.text((250, 500), string, font=font2)
|
||||
draw.text((250, 500), string, font=font2)
|
||||
return img
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user