Skip to content
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

Font not found for matplotlib #1274

Open
tahorst opened this issue Mar 16, 2022 · 0 comments
Open

Font not found for matplotlib #1274

tahorst opened this issue Mar 16, 2022 · 0 comments

Comments

@tahorst
Copy link
Member

tahorst commented Mar 16, 2022

After #1265, there is sometimes an issue finding a font on the system and you'll see the following message:

findfont: Font family ['sans-serif'] not found. Falling back to DejaVu Sans.

I found you can get around this by removing a matplotlib cache so that matplotlib rebuilds the font cache the next time it runs:

rm -r ~/.cache/matplotlib/

Apparently, Sherlock only has dejavu sans installed as a font so you might need to copy arial.ttf from $PI_HOME/.fonts/arial.ttf (this is from my local font directory /usr/share/fonts/truetype/msttcorefonts/arial.ttf) to ~/.fonts/ and then remove the matplotlib cache.

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

1 participant