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 06feaf6 commit 08e2520Copy full SHA for 08e2520
1 file changed
lib/matplotlib/mathtext.py
@@ -1122,7 +1122,7 @@ def _get_font(self, font):
1122
cached_font = self.fonts.get(basename)
1123
if cached_font is None:
1124
fname = os.path.join(self.basepath, basename + ".afm")
1125
- with open(fname, 'r') as fd:
+ with open(fname, 'rb') as fd:
1126
cached_font = AFM(fd)
1127
cached_font.fname = fname
1128
self.fonts[basename] = cached_font
0 commit comments