Spaces:
Sleeping
Sleeping
commit
Browse files- Alef-Bold.ttf +0 -0
- OpenSans-Bold.ttf +0 -0
- 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=
|
211 |
rows = 1
|
212 |
-
font = ImageFont.truetype(r"
|
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
|