nightfury commited on
Commit
8d0f9cf
1 Parent(s): 24bd850

Update src/util.py

Browse files
Files changed (1) hide show
  1. 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/AlibabaPuHuiTi-2-55-Regular.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
 
 
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