-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable kerning without external dependency #5191
Comments
As I noted in #4724, when using basic layout (i.e. without Raqm installed or with Lines 578 to 585 in c9745f4
So the answer to "Since we're just disabling a feature (kerning), is it really necessary to import libraqm?" is no 😄.
I agree it's not very user-friendly, and I wouldn't necessarily recommend it, but you are welcome to build Raqm yourself... (I'm not saying you should, but you can if you really want an "official" version.) If you run the scripts for Windows test builds ( The Windows documentation could be improved, however...
I think the expectation is that Raqm should be installed in the system (i.e. in a I'm not sure how well adding the PS: I'm not sure what you mean by the sqlite3 example, but I already have |
Thanks a lot for your answer @nulano! In the meantime I found a solution for what I was looking for. My goal was to draw text with exactly the same output than the Windows user interface. As mentioned by @ned in this post:
... so the solution was simply to use WinAPI, with the method detailed in python: use windows api to render text using a ttf font. PS: if you're curious about why I wanted to have exactly the same font rendering as the Windows user inteface, here is the reason ;): asweigart/pyautogui#521 |
Hi! It's rather complex to use "no kerning":
when drawing TrueType font text on an image with
ImageDraw.text
.Indeed, on Windows, we have to:
use unofficial builds of
libraqm
such as https://www.lfd.uci.edu/~gohlke/pythonlibs/#pillow, and it's not mentioned in the documentationwe 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.dll
is 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
?The text was updated successfully, but these errors were encountered: