Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit08e2520

Browse files
committed
Merge pull request#6898 from zblz/afm-bytes
Fix read mode when loading cached AFM fonts
1 parent06feaf6 commit08e2520

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
@@ -1122,7 +1122,7 @@ def _get_font(self, font):
11221122
cached_font=self.fonts.get(basename)
11231123
ifcached_fontisNone:
11241124
fname=os.path.join(self.basepath,basename+".afm")
1125-
withopen(fname,'r')asfd:
1125+
withopen(fname,'rb')asfd:
11261126
cached_font=AFM(fd)
11271127
cached_font.fname=fname
11281128
self.fonts[basename]=cached_font

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp