| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Since we pass the filename to `io.open`, we can accept everything it can. Also, fix the return value of `FT2Font.fname`, which could be `bytes` if that was initially provided.
| with pytest.raises(FileNotFoundError): | ||
| get_font(bytes(tmp_path / 'non-existent-font-name.ttf')) | ||
|
|
||
| # Not really public, but get_font doesn't expose non-filename constructor. |
There was a problem hiding this comment.
note to future reviewers, this was removed as redundent with other test
Sorry, something went wrong.
Add os.PathLike support to FT2Font constructor, and FontManager
| Back | FazBrowse Home | New Git URL |
PR summary
Since we pass the filename to io.open, we can accept everything it can.
Also, fix the return value of FT2Font.fname, which could be bytes if that was initially provided.
I extracted this out of #30334 since it's independent
PR checklist