Simplify filename tracking in FT2Font. · matplotlib/matplotlib@0ceedbd · GitHub
Skip to content

Commit 0ceedbd

Browse files
committed
Simplify filename tracking in FT2Font.
We don't need to separately track (and maintain refcounts) for PyFT2Font.fname; we can simply infer it from py_file (the file object) as needed. Note that if FT2Font was directly constructed with a file-like arg, the fname attribute (both previously and with this PR) is the file-like, not its name.
1 parent 8a8dd90 commit 0ceedbd

1 file changed

Lines changed: 5 additions & 11 deletions

File tree

src/ft2font_wrapper.cpp

Lines changed: 5 additions & 11 deletions

0 commit comments

Comments
 (0)