From: <md...@us...> - 2008-04-28 13:08:42
|
Revision: 5088 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5088&view=rev Author: mdboom Date: 2008-04-28 06:07:41 -0700 (Mon, 28 Apr 2008) Log Message: ----------- Fix SVG text rendering bug affecting Mozilla-based viewers. Modified Paths: -------------- branches/v0_91_maint/CHANGELOG branches/v0_91_maint/lib/matplotlib/backends/backend_svg.py Modified: branches/v0_91_maint/CHANGELOG =================================================================== --- branches/v0_91_maint/CHANGELOG 2008-04-28 11:31:19 UTC (rev 5087) +++ branches/v0_91_maint/CHANGELOG 2008-04-28 13:07:41 UTC (rev 5088) @@ -1,3 +1,6 @@ +2008-04-28 Fix bug in SVG text with Mozilla-based viewers (the symbol + tag is not supported) - MGD + 2008-04-24 Fix sub/superscripts when the size of the font has been changed - MGD Modified: branches/v0_91_maint/lib/matplotlib/backends/backend_svg.py =================================================================== --- branches/v0_91_maint/lib/matplotlib/backends/backend_svg.py 2008-04-28 11:31:19 UTC (rev 5087) +++ branches/v0_91_maint/lib/matplotlib/backends/backend_svg.py 2008-04-28 13:07:41 UTC (rev 5088) @@ -390,7 +390,8 @@ currx, curry = step[-2], -step[-1] path_data = ''.join(path_data) char_num = 'c_%s' % md5.new(path_data).hexdigest() - path_element = '<symbol id="%s"><path d="%s"/></symbol>\n' % (char_num, ''.join(path_data)) + char_num = len(self._char_defs) + path_element = '<path id="%s" d="%s"/>\n' % (char_num, ''.join(path_data)) self._char_defs[char_id] = char_num return path_element This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |