Skip to content
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

Further simplify the flow of pdf text output. #14886

Merged
merged 2 commits into from Jul 27, 2019

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Jul 25, 2019

PR Summary

... and, as a side benefit, correctly kern between 1-byte and 2-byte
chunks.

followup to #14872.

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

lib/matplotlib/backends/backend_pdf.py Outdated Show resolved Hide resolved
lib/matplotlib/backends/backend_pdf.py Outdated Show resolved Hide resolved
lib/matplotlib/backends/backend_pdf.py Outdated Show resolved Hide resolved
... and, as a side benefit, correctly kern between 1-byte and 2-byte
chunks.
... to avoid confusion with the unicode codepoint.  FreeType's doc
mostly uses "glyph index", except that the function to get it is called
FT_Get_Char_Index...
@anntzer
Copy link
Contributor Author

anntzer commented Jul 26, 2019

Added a second commit renaming "char_idx" to "glyph_idx" throughout, as this patch is a bit less confusing with that (avoids confusion between unicode codepoint and glyph indices); fwiw freetype's doc appears to use "glyph index"... except that the function to retrieve them is FT_Get_Char_Index, but heh.

@timhoffm timhoffm merged commit 6376425 into matplotlib:master Jul 27, 2019
@anntzer anntzer deleted the pdftext branch July 27, 2019 07:17
@QuLogic QuLogic added this to the v3.2.0 milestone Jul 28, 2019
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.

None yet

4 participants