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

Commit516e583

Browse files
committed
fix bug in afm font reading
1 parenta97c67c commit516e583

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
@@ -1051,7 +1051,7 @@ def _get_font(self, font):
10511051
cached_font=self.fonts.get(basename)
10521052
ifcached_fontisNone:
10531053
fname=os.path.join(self.basepath,basename+".afm")
1054-
withopen(fname,'r')asfd:
1054+
withopen(fname,'rb')asfd:
10551055
cached_font=AFM(fd)
10561056
cached_font.fname=fname
10571057
self.fonts[basename]=cached_font

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp