Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add os.PathLike support to FT2Font constructor, and FontManager#30573

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
tacaswell merged 1 commit intomatplotlib:text-overhaulfromQuLogic:font-pathlike
Sep 25, 2025

Conversation

@QuLogic
Copy link
Member

PR summary

Since we pass the filename toio.open, we can accept everything it can.

Also, fix the return value ofFT2Font.fname, which could bebytes if that was initially provided.

I extracted this out of#30334 since it's independent

PR checklist

@QuLogicQuLogic added this to thev3.11.0 milestoneSep 17, 2025
@github-project-automationgithub-project-automationbot moved this toWaiting for other PR inFont and text overhaulSep 17, 2025
@QuLogicQuLogic moved this fromWaiting for other PR toReady for Review inFont and text overhaulSep 17, 2025
Since we pass the filename to `io.open`, we can accept everything itcan.Also, fix the return value of `FT2Font.fname`, which could be `bytes` ifthat was initially provided.
withpytest.raises(FileNotFoundError):
get_font(bytes(tmp_path/'non-existent-font-name.ttf'))

# Not really public, but get_font doesn't expose non-filename constructor.
Copy link
Member

Choose a reason for hiding this comment

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

note to future reviewers, this was removed as redundent with other test

@tacaswelltacaswell merged commit1b3ba17 intomatplotlib:text-overhaulSep 25, 2025
37 checks passed
@github-project-automationgithub-project-automationbot moved this fromReady for Review toDone inFont and text overhaulSep 25, 2025
@QuLogicQuLogic deleted the font-pathlike branchSeptember 25, 2025 18:15
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@tacaswelltacaswelltacaswell approved these changes

@timhoffmtimhoffmtimhoffm approved these changes

Assignees

No one assigned

Projects

Status: Done

Milestone

v3.11.0

Development

Successfully merging this pull request may close these issues.

3 participants

@QuLogic@tacaswell@timhoffm

[8]ページ先頭

©2009-2025 Movatter.jp