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

Skip to content

Commit fb5c645

Browse files
committed
Bugfix for AFM fonts
1 parent 47a4870 commit fb5c645

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/mathtext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@ def __init__(self, default_font_prop):
10231023
directory=self.basepath)
10241024
with open(filename, 'rb') as fd:
10251025
default_font = AFM(fd)
1026-
default_font.fname = filename
1026+
default_font.filename = filename
10271027

10281028
self.fonts['default'] = default_font
10291029
self.fonts['regular'] = default_font

0 commit comments

Comments
 (0)