-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Description
Hi! It's rather complex to use "no kerning":
ImageDraw.text(..., features=["-kern"])
when drawing TrueType font text on an image with ImageDraw.text.
Indeed, on Windows, we have to:
-
use unofficial builds of
libraqmsuch as https://www.lfd.uci.edu/~gohlke/pythonlibs/#pillow, and it's not mentioned in the documentation -
we can find some info here: https://stackoverflow.com/questions/62939101/how-to-install-pre-built-pillow-wheel-with-libraqm-dlls-on-windows
-
putting these two .DLL files in
C:\Python37\DLLs\doesn't work (shouldn't .DLL files be in this folder? as an example,sqlite3.dllis in this folder on a default Python install), we have to put them inC:\Python37\alongpython.exe(which is not really great) or inC:\Windows\System32.
Since we're just disabling a feature (kerning), is it really necessary to import libraqm?