ming 3 年之前
父节点
当前提交
1eb124e92b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      main.py

+ 1 - 1
main.py

@@ -300,7 +300,7 @@ def file_prepare_v2(name, name_hash,text_content,image_urls):
 
 def txt2image(content, save_target):
     unicode_text = content
-    font = ImageFont.truetype("caption_font.ttf", 20,encoding='big5')
+    font = ImageFont.truetype("font.ttf", 20,encoding='big5')
     text_width, text_height = font.getsize(unicode_text)
     canvas = Image.new('RGBA', (500, 500), (255, 0, 0, 0) )
     draw = ImageDraw.Draw(canvas)