Spaces:
Runtime error
Runtime error
Update src/util.py
Browse files- src/util.py +1 -1
src/util.py
CHANGED
@@ -145,7 +145,7 @@ def add_text(image, text):
|
|
145 |
text_image = image.copy()
|
146 |
text_image_draw = ImageDraw.Draw(text_image)
|
147 |
|
148 |
-
ttf = ImageFont.truetype("assets/ttf/
|
149 |
left, top, right, bottom = ttf.getbbox(text)
|
150 |
text_image_draw.rectangle((0, 0, right + left, bottom + top), fill=(255, 255, 255))
|
151 |
|
|
|
145 |
text_image = image.copy()
|
146 |
text_image_draw = ImageDraw.Draw(text_image)
|
147 |
|
148 |
+
ttf = ImageFont.truetype("assets/ttf/FreeMonoBold.ttf", int(h / 10))
|
149 |
left, top, right, bottom = ttf.getbbox(text)
|
150 |
text_image_draw.rectangle((0, 0, right + left, bottom + top), fill=(255, 255, 255))
|
151 |
|