From 41fd77113a36683e1239a88fed194d0745ed28e8 Mon Sep 17 00:00:00 2001 From: tkekec Date: Sat, 22 Oct 2022 12:42:49 +0300 Subject: [PATCH] draw text --- python-core.tex | 1 + 1 file changed, 1 insertion(+) diff --git a/python-core.tex b/python-core.tex index 8039fad..148dd26 100755 --- a/python-core.tex +++ b/python-core.tex @@ -2071,6 +2071,7 @@ draw = ImageDraw.Draw(image) # drawing text size text = "hello" font = ImageFont.truetype(r'C:\Users\System-Pc\Desktop\arial.ttf', 20) +## ubuntu -- font can be found with fc-list command draw.text((5, 5), text, fill ="red", font = font, align ="right") image.save('test.png') \end{python}