ming 3 tahun lalu
induk
melakukan
40c4b20c82
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      main.py

+ 1 - 1
main.py

@@ -301,7 +301,7 @@ def file_prepare_v2(name, name_hash,text_content,image_urls):
 
 def txt2image(content, save_target):
     unicode_text = trim_punctuation(content)
-    font = ImageFont.truetype(font="DFT_B7.ttc", size=30)
+    font = ImageFont.truetype(font="DFT_B7.ttc", size=40)
     text_width, text_height = font.getsize(unicode_text)
     canvas = Image.new('RGBA', (700, 500), (255, 0, 0, 0) )
     draw = ImageDraw.Draw(canvas)