-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
BUG: Add a newline separator in fc-list call #7907
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works for me.
Current coverage is 62.17% (diff: 100%)@@ master #7907 diff @@
==========================================
Files 174 174
Lines 56121 56121
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
- Hits 34896 34894 -2
- Misses 21225 21227 +2
Partials 0 0
|
Does this mean our font finding is broken in 2.0? |
|
It's not widely reported because of the setting |
What are (or would be) the reasons to use it or not to use it? |
The fontconfig stuff is experimental code from ca. 2007 and is behind a
flag to allow experimentation by interested parties. Probably it was
felt to be risky for some reason - perhaps there are reports in the
mailing list archives? Fontconfig is probably better at finding the
system fonts on Linux systems than our custom code. @mdboom had some
bigger font-related plans (MEP14) and I don't know if they conflict with
fontconfig.
|
|
I think that Has the Travis cache been working too well, and we've just been reloading the correct font list all this time? If we need to trigger a cache rebuild, we should probably bump |
OK, I think I have an idea; in So we're essentially looking for fonts twice, once via |
I agree with @QuLogic 's analysis of what is gonig on and why this still appears to work. This should still be backported to 2.0.x (even if it is not as critical as it first appears). |
BUG: Add a newline separator in fc-list call Conflicts: lib/matplotlib/tests/test_font_manager.py - only backport the fix not the test as it uses a decorator that does not exist in 2.0.x
The backport is annoying because |
@QuLogic Regardless of why this was not an issue, one of the builds of the matrix could start with a removal of ~/.config/matplotlib/fontList.* so that font-finding is tested at least once. |
I think several of the jobs do have the setting DELETE_FONT_CACHE=1
which is supposed to do that.
|
Indeed, my bad. |
I wouldn't worry about backporting the skipif, just make the test do
`assert sys.platform=='win32' or len(...)>1`.
|
Backported to |
BUG: Add a newline separator in fc-list call
Due to matplotlib#7907, the font cache is outdated and should be re-created.
Fixes #7906.