Skip to content

Commit

Permalink
use saveSvgasPng font renaming api
Browse files Browse the repository at this point in the history
  • Loading branch information
nsonnad committed Mar 18, 2016
1 parent f341920 commit a55ae24
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/js/components/ChartExport.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,10 @@ var ChartExport = React.createClass({
downloadSVG: function() {
var filename = this._makeFilename("svg");
var chart = this._addIDsForIllustrator(this.state.chartNode);
saveSvgAsPng.svgAsDataUri(chart, {}, function(uri) {
saveSvgAsPng.svgAsDataUri(chart, {
cleanFontDefs: true,
fontFamilyRemap: { "Khula-Light": "Khula Light"}
}, function(uri) {
var a = document.createElement('a');
a.download = filename;
a.href = uri;
Expand Down

0 comments on commit a55ae24

Please sign in to comment.