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}