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 3d929fc + 551d9e9 commit 270304aCopy full SHA for 270304a
lib/matplotlib/afm.py
@@ -19,7 +19,7 @@
19
... 'fonts', 'afm', 'ptmr8a.afm')
20
>>>
21
>>> from matplotlib.afm import AFM
22
- >>> with open(afm_fname) as fh:
+ >>> with open(afm_fname, 'rb') as fh:
23
... afm = AFM(fh)
24
>>> afm.string_width_height('What the heck?')
25
(6220.0, 694)
0 commit comments