-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
PGF-related test failures on Mac OS-X #2097
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
Comments
It looks like XeTeX cannot find the Is it possible that |
However, if |
I have seen this issue too on OSX. Installing bitstream vera true type fonts makes the test pass. So yes the problem is that a non system available font is selected. |
Ok, then it is a question of whether matplotlib fonts should show up in |
@jenshnielsen Are you able to confirm that |
The output of Vera fonts on my mac without any user installed fonts is (here the test failed) a = font_manager.findSystemFonts()
matching = [s for s in a if "Vera" in s]
matching =
['/usr/X11R6/lib/X11/fonts/TTF/VeraBd.ttf',
'/usr/X11R6/lib/X11/fonts/TTF/VeraBI.ttf',
'/usr/X11/lib/X11/fonts/TTF/VeraSe.ttf',
'/usr/X11R6/lib/X11/fonts/TTF/VeraMoBI.ttf',
'/usr/X11R6/lib/X11/fonts/TTF/VeraMoIt.ttf',
'/usr/X11/lib/X11/fonts/TTF/VeraBd.ttf',
'/usr/X11R6/lib/X11/fonts/TTF/VeraMono.ttf',
'/usr/X11R6/lib/X11/fonts/TTF/VeraMoBd.ttf',
'/usr/X11R6/lib/X11/fonts/TTF/VeraSe.ttf',
'/usr/X11/lib/X11/fonts/TTF/VeraIt.ttf',
'/usr/X11/lib/X11/fonts/TTF/VeraMoIt.ttf',
'/usr/X11/lib/X11/fonts/TTF/VeraMoBd.ttf',
'/usr/X11/lib/X11/fonts/TTF/VeraMono.ttf',
'/usr/X11R6/lib/X11/fonts/TTF/VeraIt.ttf',
'/usr/X11R6/lib/X11/fonts/TTF/Vera.ttf',
'/usr/X11/lib/X11/fonts/TTF/VeraBI.ttf',
'/usr/X11/lib/X11/fonts/TTF/VeraSeBd.ttf',
'/usr/X11R6/lib/X11/fonts/TTF/VeraSeBd.ttf',
'/usr/X11/lib/X11/fonts/TTF/Vera.ttf',
'/usr/X11/lib/X11/fonts/TTF/VeraMoBI.ttf'] I guess these fonts may be installed by Xquarts ? Which I have installed but XeTeX does not use them. With user installed fonts. Here the tests pass. ['/usr/X11R6/lib/X11/fonts/TTF/VeraBd.ttf',
'/usr/X11R6/lib/X11/fonts/TTF/VeraBI.ttf',
'/Users/jenshnielsen/Library/Fonts/VeraMoIt.ttf',
'/usr/X11/lib/X11/fonts/TTF/VeraSe.ttf',
'/usr/X11R6/lib/X11/fonts/TTF/VeraMoBI.ttf',
'/Users/jenshnielsen/Library/Fonts/VeraMono.ttf',
'/Users/jenshnielsen/Library/Fonts/VeraBI.ttf',
'/Users/jenshnielsen/Library/Fonts/VeraSeBd.ttf',
'/usr/X11/lib/X11/fonts/TTF/VeraBd.ttf',
'/Users/jenshnielsen/Library/Fonts/VeraBd.ttf',
'/usr/X11R6/lib/X11/fonts/TTF/VeraMono.ttf',
'/Users/jenshnielsen/Library/Fonts/VeraSe.ttf',
'/usr/X11R6/lib/X11/fonts/TTF/VeraMoIt.ttf',
'/usr/X11R6/lib/X11/fonts/TTF/VeraMoBd.ttf',
'/usr/X11R6/lib/X11/fonts/TTF/VeraSe.ttf',
'/usr/X11/lib/X11/fonts/TTF/VeraIt.ttf',
'/Users/jenshnielsen/Library/Fonts/VeraMoBd.ttf',
'/usr/X11/lib/X11/fonts/TTF/VeraMoIt.ttf',
'/usr/X11/lib/X11/fonts/TTF/VeraMoBd.ttf',
'/usr/X11/lib/X11/fonts/TTF/VeraMono.ttf',
'/usr/X11R6/lib/X11/fonts/TTF/VeraIt.ttf',
'/usr/X11R6/lib/X11/fonts/TTF/Vera.ttf',
'/Users/jenshnielsen/Library/Fonts/Vera.ttf',
'/usr/X11/lib/X11/fonts/TTF/VeraBI.ttf',
'/Users/jenshnielsen/Library/Fonts/VeraMoBI.ttf',
'/usr/X11/lib/X11/fonts/TTF/VeraSeBd.ttf',
'/Users/jenshnielsen/Library/Fonts/VeraIt.ttf',
'/usr/X11R6/lib/X11/fonts/TTF/VeraSeBd.ttf',
'/usr/X11/lib/X11/fonts/TTF/Vera.ttf',
'/usr/X11/lib/X11/fonts/TTF/VeraMoBI.ttf'] I have not tried to uninstall Xquarts |
The X11 fonts are not install into the Mac OS Font viewer "Font Book". I can't remember how XeTeX findes the fonts but this might be the explanation? |
This could indeed explain the issue. XeTeX uses OS-native methods for finding fonts. If OSX applications don't know about X11 fonts then XeTeX won't find them neither. I was thinking about using |
I have fc-list which does not fine the X11 fonts. That seems like a good solution. But it is installed by fontconfig from homebrew as a dependency of pango so I don't think we can rely on that being available all the time. |
We do have |
Yes that works as expected and does not return the X11 fonts. a = font_manager.OSXInstalledFonts()
matching = [s for s in a if "Vera" in s]
['/Users/jenshnielsen/Library/Fonts/Vera.ttf',
'/Users/jenshnielsen/Library/Fonts/VeraBd.ttf',
'/Users/jenshnielsen/Library/Fonts/VeraBI.ttf',
'/Users/jenshnielsen/Library/Fonts/VeraIt.ttf',
'/Users/jenshnielsen/Library/Fonts/VeraMoBd.ttf',
'/Users/jenshnielsen/Library/Fonts/VeraMoBI.ttf',
'/Users/jenshnielsen/Library/Fonts/VeraMoIt.ttf',
'/Users/jenshnielsen/Library/Fonts/VeraMono.ttf',
'/Users/jenshnielsen/Library/Fonts/VeraSe.ttf',
'/Users/jenshnielsen/Library/Fonts/VeraSeBd.ttf'] |
Ok, I'm going to prepare a patch that replaces |
I'm moving this out of blocker status, and into a v1.3 bugfix release milestone. |
Closed by #2117. |
What is the status of fixing this? |
Same question; pgf still fails badly on OS X. |
@pwuertz Can your re-base this commit (https://github.com/pwuertz/matplotlib/commit/9ccacffe81e0d4a48e4a4b19064460b94c6f77c9) on current master and push it back up? There is something very fishy going on with github here. |
I put the PR back up (#2829). As mentioned before, I still have no clue if it is safe to assume that |
(fix #2097) PGF: get fonts from fc-list, use builtin fonts for tests
:( |
@nicola Is this an error from running the pgf tests? As far as I can see I removed any dependency on system fonts alltogether. |
These were reported by @r-owen in the process of making osx binaries for 1.3.0rc2. @pwuertz: do you have any ideas? Something to do with the TeX environment?
The text was updated successfully, but these errors were encountered: