Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix font deduplication logic in createFontList. #13678

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

Merged
merged 1 commit into from
Mar 17, 2019

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Mar 16, 2019

Only add a font name to the "seen" list if one successfully extracts the
font properties from it; otherwise a first font that cannot be read
(e.g. due to permission issues) will mask a later font that can.

I think this should close(?) #13673.

PR Summary

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

Only add a font name to the "seen" list if one successfully extracts the
font properties from it; otherwise a first font that cannot be read
(e.g. due to permission issues) will mask a later font that can.
@QuLogic QuLogic merged commit cdf4c1e into matplotlib:master Mar 17, 2019
@QuLogic QuLogic added this to the v3.1.0 milestone Mar 17, 2019
@QuLogic
Copy link
Member

QuLogic commented Mar 17, 2019

Probably should put it on 3.1.0, so...

@meeseeksdev backport to v3.1.x

meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Mar 17, 2019
timhoffm added a commit that referenced this pull request Mar 17, 2019
…678-on-v3.1.x

Backport PR #13678 on branch v3.1.x (Fix font deduplication logic in createFontList.)
@anntzer anntzer deleted the dupfonts branch March 18, 2019 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants