This commit is contained in:
lvmin
2023-02-17 13:45:51 -08:00
parent 5b9908e35c
commit 31c4095c07
2 changed files with 1 additions and 1 deletions

BIN
font/DejaVuSans.ttf Normal file

Binary file not shown.

View File

@@ -16,7 +16,7 @@ def log_txt_as_img(wh, xc, size=10):
for bi in range(b):
txt = Image.new("RGB", wh, color="white")
draw = ImageDraw.Draw(txt)
font = ImageFont.truetype('data/DejaVuSans.ttf', size=size)
font = ImageFont.truetype('font/DejaVuSans.ttf', size=size)
nc = int(40 * (wh[0] / 256))
lines = "\n".join(xc[bi][start:start + nc] for start in range(0, len(xc[bi]), nc))