From: Alan Knowles Date: Mon, 23 Jul 2012 07:19:48 +0000 (+0800) Subject: plugins/raphael.export.js X-Git-Url: http://git.roojs.org/?p=raphael;a=commitdiff_plain;h=c08cabc928a81be9740fce0d62faa98133d2e59c plugins/raphael.export.js --- diff --git a/plugins/raphael.export.js b/plugins/raphael.export.js index 3227180..dfdeb3d 100644 --- a/plugins/raphael.export.js +++ b/plugins/raphael.export.js @@ -163,7 +163,8 @@ return initial; }, { - style: 'text-anchor: middle; ' + styleToString(style) + ';' } + style: 'text-anchor: ' + (style.font.anchor ? style.font.anchor : 'middle;') + + styleToString(style) + ';' } ), node.matrix, tag('tspan',