You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
from image_text import ImageText
|
|
|
|
FONT_FILE = 'CenturyGothicBold.ttf'
|
|
BG = 'MORJ.png'
|
|
|
|
|
|
def draw_morj(text, filename):
|
|
img = ImageText(BG)
|
|
img.write_text_box((67, 70), text, box_width=800, font_filename=FONT_FILE, font_size=40, color=(255, 255, 255))
|
|
img.save(filename)
|