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

Skip to content

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented May 7, 2019

I missed the fact that enc is now a list, not a mapping anymore (and
glyph is still an index), so the glyph in enc check does not make
sense anymore.

(Edit: looks like this was an incorrect last-minute partial revert after a review: #12928 (comment).)

This fixes test_backend_svg::test_unicode_won, which previously failed
if run by itself but curiously would not fail when run with the rest
of the test suite.

followup to #12928; I'm going to mark this as release critical as #12928 is basically wrong without this but feel free to untag.

there's a test in the followup PR, #14159.

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

I missed the fact that `enc` is now a list, not a mapping anymore (and
`glyph` is still an index), so the `glyph in enc` check does not make
sense anymore.

This fixes test_backend_svg::test_unicode_won, which previously failed
*if run by itself* but curiously would not fail when run with the rest
of the test suite.
@anntzer anntzer added the Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. label May 7, 2019
@anntzer anntzer added this to the v3.1.0 milestone May 7, 2019
@jklymak jklymak merged commit af33de4 into matplotlib:master May 7, 2019
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request May 7, 2019
@anntzer anntzer deleted the texenc branch May 7, 2019 22:03
dstansby added a commit that referenced this pull request May 8, 2019
…156-on-v3.1.x

Backport PR #14156 on branch v3.1.x (Fix glyph loading in textpath.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend: svg Release critical For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions. topic: text/usetex
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants