Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3a0c01c

Browse files
committed
Close a font file once the font has been embedded (PDF backend)
svn path=/trunk/matplotlib/; revision=3482
1 parent eb61d3a commit 3a0c01c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/matplotlib/backends/backend_pdf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,7 @@ def get_char_width(charcode):
599599
if not data: break
600600
length1 += len(data)
601601
self.currentstream.write(data)
602+
fontfile.close()
602603
self.endStream()
603604
self.writeObject(length1Object, length1)
604605

0 commit comments

Comments
 (0)