bold font

This commit is contained in:
owl 2024-10-25 23:58:48 +07:00
parent 023fd3207d
commit 5ea98cd3f7
2 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ import sys
import io import io
def render_text_on_image(input_image_path, text_to_draw, output_image_path=None, font_path="arial-unicode-ms-regular.ttf", font_size=52): def render_text_on_image(input_image_path, text_to_draw, output_image_path=None, font_path="arial-unicode-ms-bold.ttf", font_size=52):
image = Image.open(input_image_path) image = Image.open(input_image_path)
draw = ImageDraw.Draw(image) draw = ImageDraw.Draw(image)