ming 3 years ago
parent
commit
93c08d5f01
1 changed files with 1 additions and 1 deletions
  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("sub_font.ttf", 25,encoding='big5')
+    font = ImageFont.truetype("font.ttf", 25,encoding='big5')
     text_width, text_height = font.getsize(unicode_text)
     canvas = Image.new('RGBA', (500, 500), (255, 0, 0, 0) )
     draw = ImageDraw.Draw(canvas)