Skip to content

font cache: a possibility to disable building it #7592

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

Closed
FRidh opened this issue Dec 8, 2016 · 2 comments
Closed

font cache: a possibility to disable building it #7592

FRidh opened this issue Dec 8, 2016 · 2 comments

Comments

@FRidh
Copy link

FRidh commented Dec 8, 2016

I'm using matplotlib 1.5.3 on Nix, and for general users it works good. Now, with Nix, we have a tool to build packages in isolation. The builds are run by special users in a clean environment. I've started using Nix for my data analyses and simulations. Unfortunately, whenever a module imports matplotlib, it will rebuild the cache. And it will do this for each step that I build separately.

Ideally a lazy evaluation would be used, i.e., no building of the cache until it is really needed. I guess this isn't implemented. Until then, is there some kind of flag I could set to disable building the cache - or passing it an empty cache?

@tacaswell
Copy link
Member

The font cache is needed anytime text will be put on a figure (so we can find the fonts to draw it), there is not much way around it. There is a PR open to suppress the warning if it takes less than 5 seconds to find the fonts.

@anntzer
Copy link
Contributor

anntzer commented Dec 12, 2016

The warning has been removed (unless fc-list is extremely slow) by #7596.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants