Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f7e675 commit c766846Copy full SHA for c766846
lib/matplotlib/mathtext.py
@@ -1119,7 +1119,7 @@ def _get_font(self, font):
1119
cached_font = self.fonts.get(basename)
1120
if cached_font is None:
1121
fname = os.path.join(self.basepath, basename + ".afm")
1122
- with open(fname, 'r') as fd:
+ with open(fname, 'rb') as fd:
1123
cached_font = AFM(fd)
1124
cached_font.fname = fname
1125
self.fonts[basename] = cached_font
0 commit comments