Open 0ctagon opened 6 months ago
Hello @0ctagon, I think you fixed that, didn't you?
Not yet. https://github.com/cyrraz/plothist/pull/158 only check if the fonts are already installed in ~/.fonts
, it doesn't checks in all the system if they already are installed and then link it to matplotlib.
In some cases, the fonts are already installed in the machine, but matplotlib is unaware of the location and doesn't check it. In this case, the user download the fonts even if he doesn't need to. We could add in the
__init__
something like:but then will the
fontManager
(ref) still tries the default path if you don't tell where to look? I had problems providing explicitlyNone
as a default parameters, some found fonts crashes thefontManager.addfont
, so I'm a bit confused by how it proceeds to get the fonts.