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 a97c67c commit 516e583Copy full SHA for 516e583
lib/matplotlib/mathtext.py
@@ -1051,7 +1051,7 @@ def _get_font(self, font):
1051
cached_font = self.fonts.get(basename)
1052
if cached_font is None:
1053
fname = os.path.join(self.basepath, basename + ".afm")
1054
- with open(fname, 'r') as fd:
+ with open(fname, 'rb') as fd:
1055
cached_font = AFM(fd)
1056
cached_font.fname = fname
1057
self.fonts[basename] = cached_font
0 commit comments