yaron123 commited on
Commit
a8e1c8c
·
1 Parent(s): fc99013
Files changed (3) hide show
  1. Alef-Bold.ttf +0 -0
  2. OpenSans-Bold.ttf +0 -0
  3. app.py +2 -2
Alef-Bold.ttf ADDED
Binary file (91.1 kB). View file
 
OpenSans-Bold.ttf DELETED
Binary file (131 kB)
 
app.py CHANGED
@@ -207,9 +207,9 @@ def pipe_generate(img,p1,p2,time,title):
207
 
208
  if title != "":
209
  draw = ImageDraw.Draw(img)
210
- textheight=80
211
  rows = 1
212
- font = ImageFont.truetype(r"OpenSans-Bold.ttf", textheight)
213
  textwidth = draw.textlength(title,font)
214
  x = (width - textwidth) // 2
215
  y = (height - (textheight * rows // 2)) // 2
 
207
 
208
  if title != "":
209
  draw = ImageDraw.Draw(img)
210
+ textheight=72
211
  rows = 1
212
+ font = ImageFont.truetype(r"Alef-Bold.ttf", textheight)
213
  textwidth = draw.textlength(title,font)
214
  x = (width - textwidth) // 2
215
  y = (height - (textheight * rows // 2)) // 2