ImageFont.truetypePIL.ImageFont.truetype(font=None, size=10, index=0, encoding='', layout_engine=None)
- font – A filename or file-like object containing a TrueType font. Under Windows, if the file is not found in this filename, the loader also looks in Windows fonts/ directory.
- size – The requested size, in points.
Жаль, что это совершенно другой модуль.
Правда что-ли? А мужики то не знали!
The Python Imaging Library, or PIL for short, is one of the core libraries for image manipulation in Python. Unfortunately, its development has stagnated, with its last release in 2009.
Luckily for you, there’s an actively-developed fork of PIL called Pillow – it’s easier to install, runs on all major operating systems, and supports Python 3.
Вы хоть по ссылке в документацию перешли бы и посмотрели куда она ведёт.
pillow.readthedocs.io