Skip to content

Commit 65cab59

Browse files
committed
static font files
1 parent 6a4d165 commit 65cab59

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

examples/playground/api/index.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,11 @@ def render_image():
193193
draw = ImageDraw.Draw(image)
194194

195195
# write text
196-
font = ImageFont.truetype('DejaVuSansMono-Bold.ttf', 36)
196+
font = ImageFont.truetype('api/static/DejaVuSansMono-Bold.ttf', 36)
197197
draw.text((10, 10), title, fill=(0, 0, 0), font=font)
198198
y = 80
199199
for m in msg.split('\n'):
200-
font = ImageFont.truetype('DejaVuSansMono.ttf', 20)
200+
font = ImageFont.truetype('api/static/DejaVuSansMono.ttf', 20)
201201
draw.text((10, y), m, fill=(0, 0, 0), font=font)
202202
y += 25
203203

324 KB
Binary file not shown.
333 KB
Binary file not shown.

0 commit comments

Comments
 (0)