Revision: 3808
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3808&view=rev
Author:   mdboom
Date:     2007-09-07 07:55:55 -0700 (Fri, 07 Sep 2007)

Log Message:
-----------
Fix embedded glyph rendering bug revealed by Inkscape and Safari (but
not Firefox)

Modified Paths:
--------------
    trunk/matplotlib/lib/matplotlib/backends/backend_svg.py

Modified: trunk/matplotlib/lib/matplotlib/backends/backend_svg.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/backends/backend_svg.py     2007-09-07 
14:34:51 UTC (rev 3807)
+++ trunk/matplotlib/lib/matplotlib/backends/backend_svg.py     2007-09-07 
14:55:55 UTC (rev 3808)
@@ -317,8 +317,8 @@
         currx, curry = 0.0, 0.0
         for step in glyph.path:
             if step[0] == 0:   # MOVE_TO
-                path_data.append("m%s %s" %
-                                 (step[1] - currx, -step[2] - curry))
+                path_data.append("M%s %s" %
+                                 (step[1], -step[2]))
             elif step[0] == 1: # LINE_TO
                 path_data.append("l%s %s" %
                                  (step[1] - currx, -step[2] - curry))
@@ -332,7 +332,8 @@
                                   step[3] - currx, -step[4] - curry,
                                   step[5] - currx, -step[6] - curry))
             elif step[0] == 4: # ENDPOLY
-                path_data.append("Z")
+                path_data.append("z")
+                currx, curry = 0.0, 0.0
 
             if step[0] != 4:
                 currx, curry = step[-2], -step[-1]


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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to