Revision: 7762
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7762&view=rev
Author:   jouni
Date:     2009-09-15 12:12:19 +0000 (Tue, 15 Sep 2009)

Log Message:
-----------
Don't fail on AFM files containing floating-point bounding boxes

Modified Paths:
--------------
    branches/v0_99_maint/CHANGELOG
    branches/v0_99_maint/lib/matplotlib/afm.py

Modified: branches/v0_99_maint/CHANGELOG
===================================================================
--- branches/v0_99_maint/CHANGELOG      2009-09-14 21:52:24 UTC (rev 7761)
+++ branches/v0_99_maint/CHANGELOG      2009-09-15 12:12:19 UTC (rev 7762)
@@ -1,3 +1,5 @@
+2009-09-15 Don't fail on AFM files containing floating-point bounding boxes - 
JKS
+
 2009-08-06 Tagging the 0.99.0 release at svn r7397 - JDH
 
           * fixed an alpha colormapping bug posted on sf 2832575

Modified: branches/v0_99_maint/lib/matplotlib/afm.py
===================================================================
--- branches/v0_99_maint/lib/matplotlib/afm.py  2009-09-14 21:52:24 UTC (rev 
7761)
+++ branches/v0_99_maint/lib/matplotlib/afm.py  2009-09-15 12:12:19 UTC (rev 
7762)
@@ -165,7 +165,8 @@
         num = _to_int(vals[0].split()[1])
         wx = _to_float(vals[1].split()[1])
         name = vals[2].split()[1]
-        bbox = _to_list_of_ints(vals[3][2:])
+        bbox = _to_list_of_floats(vals[3][2:])
+        bbox = map(int, bbox)
         # Workaround: If the character name is 'Euro', give it the 
corresponding
         # character code, according to WinAnsiEncoding (see PDF Reference).
         if name == 'Euro':


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to