fontconfig on windows troubles with solution #20
Replies: 3 comments 1 reply
-
I have never heard of For Windows, Anaconda might be an option, which has pre-built binaries for Windows as well: https://anaconda.org/anaconda/fontconfig (You might be able to use the binaries for a manual installation as well, but according to the |
Beta Was this translation helpful? Give feedback.
-
I tried fontconfig from anaconda, from mingw, and some more, but didn't manage to make it work. So I gave fontra a try. Since it worked, I thought it might help someone with troubles on windows too. On linux and in container, everything is fine with fontconfig. Since I have a container running brother_ql_web, I am fine with dep on fontconfig. ATM I am learning how this python universe works, my programming skills are 0, so fontra was a nice success. Setuptools, poetry, bottle, jinga so many things I never used, never heard of and hope someday I have a PR with tests for #19 . :-) |
Beta Was this translation helpful? Give feedback.
-
The master branch now provides an optional fallback to |
Beta Was this translation helpful? Give feedback.
-
While trying to get some kind of dev environment on my windows pc for #19 , I struggled with fontconfig.
fontconfig seems to be an os dependency and you have to install it, if it is missing on the os.
On the net many have troubles with it on windows.
For some with the same problem, this might be some help....
After adding fontra https://pypi.org/project/fontra/
all I had to do was change in
font_helpers.py
functionget_fonts
with importsimport fontra
andfrom pathlib import Path
toIt should do its job on macos and linux, but didn't test it.
Beta Was this translation helpful? Give feedback.
All reactions