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.
2 parents 0e1c687 + c766846 commit f3b6c4eCopy full SHA for f3b6c4e
1 file changed
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