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

Skip to content

Commit 4ade259

Browse files
committed
Fix mathtext bug when svg.embed_char_paths is False
svn path=/trunk/matplotlib/; revision=3637
1 parent 7bda43d commit 4ade259

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/backends/backend_svg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ def _draw_mathtext(self, gc, x, y, s, prop, angle):
375375
new_y = - new_y_mtc
376376

377377
svg.append('<tspan style="font-size: %f; font-family: %s"' %
378-
(fontsize, fontname))
378+
(fontsize, font.family_name))
379379
xadvance = metrics.advance
380380
svg.append(' textLength="%f"' % xadvance)
381381

0 commit comments

Comments
 (0)