Clean up AFM code by QuLogic · Pull Request #30121 · matplotlib/matplotlib · GitHub
Skip to content

Clean up AFM code - #30121

Merged
oscargus merged 1 commit into
matplotlib:mainfrom
QuLogic:afm-cleanup
May 31, 2025
Merged

oscargus merged 1 commit into
matplotlib:mainfrom
QuLogic:afm-cleanup

Conversation

@QuLogic

@QuLogic QuLogic commented May 29, 2025

Copy link
Copy Markdown
Member

PR summary

Since AFM is now private (though for some reason still in the docs), we can delete unused methods without deprecation.

Additionally, add AFM.get_glyph_name so that the PostScript mathtext code doesn't need to special case AFM files.

PR checklist

Comment thread lib/matplotlib/_afm.py Outdated

@anntzer anntzer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With a minor suggestion.

Since AFM is now private, we can delete unused methods without
deprecation.

Additionally, add `AFM.get_glyph_name` so that the PostScript mathtext
code doesn't need to special case AFM files.
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