Skip to content

Remove FT2Font._render_glyph and _PositionedBitmap - #32412

Open
iccir wants to merge 1 commit into
matplotlib:mainfrom
iccir:remove-py-positioned-bitmap
Open

iccir wants to merge 1 commit into
matplotlib:mainfrom
iccir:remove-py-positioned-bitmap

Conversation

@iccir

@iccir iccir commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

PR summary

After #32120, I can't find any internal callers to FT2Font._render_glyph() nor the _PositionedBitmap class.

I found one project on GitHub that is relatively new and is using _render_glyph directly.

I'm not sure how aggressive we want to be about removing unused internal code. That said, all tests seem to pass.

AI Disclosure

Not used.

PR quality check

  • Use an expressive title, e.g. "Fix title font property precedence"
  • New and changed code is tested
  • [/] Plotting related features are demonstrated in an example
  • [/] New features and API changes have release notes
  • [/] Documentation complies with general and docstring guidelines

@iccir
iccir marked this pull request as ready for review October 1, 2026 03:48
@iccir
iccir requested a review from scottshambaugh October 1, 2026 03:48

@scottshambaugh scottshambaugh 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.

Dead code cleanup is always a good thing, and private (well in Python it's "private", but I digress) functions hold no API guarantees. So any external use is at-risk that we shouldn't weigh in our decisions. LGTM!

This branch has not been deployed

No deployments
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.

2 participants