From e2e51426889dc97c6c72581678a5dbe1b21f2f2a Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sat, 29 Jun 2024 01:31:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ica-rs/plugins/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ica-rs/plugins/base.py b/ica-rs/plugins/base.py index b9b3ee3..9f0b811 100644 --- a/ica-rs/plugins/base.py +++ b/ica-rs/plugins/base.py @@ -39,7 +39,7 @@ def local_env_image() -> bytes: img = Image.new("RGB", (800, 120), (255, 255, 255)) # 往图片上写入一些信息 draw = ImageDraw.Draw(img) - font = ImageFont.truetype("SMILEYSANS-OBLIQUE.TTF", size=25) + font = ImageFont.truetype("./SMILEYSANS-OBLIQUE.TTF", size=25) draw.text((10, 10), local_env_info(), fill=(0, 0, 0), font=font) img_cache = io.BytesIO() img.save(img_cache, format="PNG")