Skip to content

Don't crash on invalid registry font entries on Windows. - #12408

Merged
jklymak merged 1 commit into
matplotlib:masterfrom
anntzer:lenient-winfontmanager
Oct 5, 2018
Merged

jklymak merged 1 commit into
matplotlib:masterfrom
anntzer:lenient-winfontmanager

Conversation

@anntzer

@anntzer anntzer commented Oct 5, 2018 •

Copy link
Copy Markdown
Contributor

PR Summary

Closes #12406, see discussion there.
I didn't check whether this is a regression due to the simplification of the registry reader in 3.0, but it seems reasonable to target this to 3.0.x anyways.

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

@anntzer anntzer added this to the v3.0.x milestone Oct 5, 2018
@jklymak
jklymak merged commit 416495b into matplotlib:master Oct 5, 2018
@anntzer
anntzer deleted the lenient-winfontmanager branch October 5, 2018 14:19
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Oct 5, 2018
@Kojoley Kojoley mentioned this pull request Oct 5, 2018
jklymak added a commit that referenced this pull request Oct 5, 2018
…408-on-v3.0.x

Backport PR #12408 on branch v3.0.x (Don't crash on invalid registry font entries on Windows.)
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.

Bug with font finding, and here is my fix as well.

3 participants