Closed mike-fabian closed 1 year ago
$ python3 Python 3.11.0 (main, Oct 24 2022, 00:00:00) [GCC 12.2.1 20220819 (Red Hat 12.2.1-2)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import fontconfig >>> fonts = fontconfig.query(lang='bn') >>> fonts = fontconfig.query(lang='hi') Segmentation fault (core dumped) mfabian@fedora:~ $ cat /etc/fedora-release Fedora release 37 (Thirty Seven) mfabian@fedora:~ $ rpm -q python3-fontconfig python3-fontconfig-0.5.1-10.fc37.x86_64 mfabian@fedora:~ $
https://pypi.org/project/Python-fontconfig/ was last updated in 2011.
Might have problems with newer versions of fontconfig. At least it does not seem to work reliably on fedora 37.
Better use fc-list instead.