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

Skip to content

Commit 76ff2d2

Browse files
committed
Fix character spacing bug in non-mathtext
svn path=/trunk/matplotlib/; revision=3679
1 parent ea084df commit 76ff2d2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/matplotlib/backends/backend_svg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,9 +276,9 @@ def draw_text(self, gc, x, y, s, prop, angle, ismath):
276276
currx += kern/64.0
277277

278278
svg.append('<use xlink:href="#%s" transform="translate(%s)"/>\n'
279-
% (charid, currx / (fontsize / self.FONT_SCALE)))
279+
% (charid, currx))
280280

281-
currx += glyph.linearHoriAdvance / 65536.0
281+
currx += (glyph.linearHoriAdvance / 65536.0)
282282
svg.append('</g>\n')
283283
svg = ''.join(svg)
284284
else:

0 commit comments

Comments
 (0)