title: Issue Textpath svg to png
body: <p>I'm working on an SVG graphic export (with d3.js library) to PNG. The problem is the label textPath. When exporting to PNG, the text does not appear. Does anyone know if there is solution for this problem?</p>
  
  <p>The code I'm using to do the conversion is:</p>
  
  <pre><code>var svgString = new XMLSerializer().serializeToString(document.querySelector('#svg'));
  
  var canvas = document.getElementById("canvas");
  var ctx = canvas.getContext("2d");
  
  var DOMURL = self.URL || self.webkitURL || self;
  var img = new Image();
  var svg = new Blob([svgString], {type: "image/svg+xml;charset=utf-8"});
  var url = DOMURL.createObjectURL(svg);
  
  img.onload = function() {
      ctx.drawImage(img, 0, 0);
      var png = canvas.toDataURL("image/png");
      var a = document.createElement("a");
      a.download = "grafico.png";
      a.href = png;
      a.click();
      DOMURL.revokeObjectURL(png);
  };
  img.src = url;
  </code></pre>
  
  <p>Thank you very much to all. 
  A greeting, 
  Sonia</p>