A
A
arsfilinov2021-06-08 20:03:08
Python
arsfilinov, 2021-06-08 20:03:08

The text size in Pillow does not change, what should I do?

Help! I can't change the text size, the text is superimposed, but the size does not change in any way. Attached the code below.

img = Image.open('fon.png')
          idraw = ImageDraw.Draw(img)

          headline = ImageFont.truetype('Bigetron_Shrift.otf', size = 1500)

          tekst = text
          idraw.text((400, 200), tekst, Font = headline)
          img.save('gotov.png')

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
o5a, 2021-06-09
@o5a

font = headline

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question