Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1877e29

Browse files
committed
Merged revisions 7762 via svnmerge from
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/v0_99_maint ........ r7762 | jouni | 2009-09-15 15:12:19 +0300 (Ti, 15 Syy 2009) | 1 line Don't fail on AFM files containing floating-point bounding boxes ........ svn path=/trunk/matplotlib/; revision=7763
1 parent 0750e66 commit 1877e29

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

CHANGELOG

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
2009-09-15 Don't fail on AFM files containing floating-point bounding boxes - JKS
2+
13
2009-09-13 AxesGrid : add modified version of colorbar. Add colorbar
24
location howto. - JJL
35

lib/matplotlib/afm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ def _parse_char_metrics(fh):
165165
num = _to_int(vals[0].split()[1])
166166
wx = _to_float(vals[1].split()[1])
167167
name = vals[2].split()[1]
168-
bbox = _to_list_of_ints(vals[3][2:])
168+
bbox = _to_list_of_floats(vals[3][2:])
169+
bbox = map(int, bbox)
169170
# Workaround: If the character name is 'Euro', give it the corresponding
170171
# character code, according to WinAnsiEncoding (see PDF Reference).
171172
if name == 'Euro':

0 commit comments

Comments
 (0)