pyx-project / pyx

Repository of PyX, a Python package for the creation of PostScript, PDF, and SVG files.
https://pyx-project.org/
GNU General Public License v2.0
109 stars 18 forks source link

Default font installation path for distributions #39

Open felixonmars opened 1 year ago

felixonmars commented 1 year ago

It would make sense for distributions to set a default font search location to packaged amsfonts. Currently it seems hard to set that default value.

Would it be appropriate to enable recursivedir by default and point it to the location?

wobsta commented 1 year ago

Unfortunately recursivedir fails as soon as it tries to access a non-existing directory. The exception is currently handled in the loop over the openers and PyX will fall back to the other configured openers. This might be an acceptable solution for the moment, but we should better ignore non-existing directories in the future (and maybe warn in the pyxinfo output).