From 9b5cf1526f57e8e12ed53517616a9d73923111b3 Mon Sep 17 00:00:00 2001 From: SlyAimer <2289782085@qq.com> Date: Sun, 9 Feb 2025 18:19:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=96=9C=E6=8A=A5bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/good_bad_news.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/good_bad_news.py b/src/plugins/good_bad_news.py index 81b4bd2..fb9f394 100644 --- a/src/plugins/good_bad_news.py +++ b/src/plugins/good_bad_news.py @@ -49,13 +49,13 @@ async def function(message: MessageEvent): if keyword == "/喜报": filename = "good_news.png" await add_text_to_image(image_path=good_bad + filename, output_path=temp_path + filename, content=content, - font_path=font_path + "msyh.ttc", font_size=64, text_color=(255, 0, 0),text_position="center", + font_path=font_path + "微软雅黑.ttc", font_size=64, text_color=(255, 0, 0),text_position="center", position="center") await good_news.finish(MessageSegment.file_image(Path(temp_path + filename))) elif keyword == "/悲报": filename = "bad_news.png" await add_text_to_image(image_path=good_bad + filename, output_path=temp_path + filename, content=content, - font_path=font_path + "msyh.ttc", font_size=64, text_color=(128, 128, 128),text_position="center", + font_path=font_path + "微软雅黑.ttc", font_size=64, text_color=(128, 128, 128),text_position="center", position="center") await good_news.send(MessageSegment.file_image(Path(temp_path+filename))) await delete_file(temp_path + filename) \ No newline at end of file