Skip to content

Replace FT2Image by plain numpy arrays.#30044

Merged
timhoffm merged 1 commit into
matplotlib:mainfrom
anntzer:ufi
May 24, 2025
Merged

Replace FT2Image by plain numpy arrays.#30044
timhoffm merged 1 commit into
matplotlib:mainfrom
anntzer:ufi

Conversation

@anntzer

@anntzer anntzer commented May 12, 2025

Copy link
Copy Markdown
Contributor

FT2Image predates numpy, but we don't really need to maintain our own 2D buffer class nowadays.

PR summary

PR checklist

@tacaswell

Copy link
Copy Markdown
Member

Failures look related and real, but I have no good guess as to why not on osx.

@anntzer anntzer force-pushed the ufi branch 2 times, most recently from fc3e947 to c69331b Compare May 12, 2025 19:51
@anntzer

anntzer commented May 12, 2025

Copy link
Copy Markdown
Contributor Author

I forgot to zero-initialize the FT2Image. Fixed.

Comment thread src/ft2font_wrapper.cpp Outdated
@QuLogic

QuLogic commented May 17, 2025

Copy link
Copy Markdown
Member

If we end up doing #30059, does that mean this PR is also not necessary (other than applying a deprecation, probably)?

@anntzer

anntzer commented May 17, 2025

Copy link
Copy Markdown
Contributor Author

Indeed, but I didn't remove this PR as 1) the deprecation will still be needed anyways, and 2) it's a much simpler PR, which can hopefully get in faster if #30059 gets stalled.

Comment thread doc/api/next_api_changes/deprecations/30044-AL.rst
Comment thread lib/matplotlib/tests/test_ft2font.py
@timhoffm timhoffm merged commit def8fa4 into matplotlib:main May 24, 2025
41 checks passed
@anntzer anntzer deleted the ufi branch May 24, 2025 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants