<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; ">
<div><span class="Apple-style-span" style="font-family: Helvetica; font-size: medium; ">Hello, </span>
<div style="font-family: Helvetica; font-size: medium; "><br>
</div>
<div style="font-family: Helvetica; font-size: medium; ">I am trying to use the vtkGL2PSExporter to write a vtkChartXY to SVG.</div>
<div style="font-family: Helvetica; font-size: medium; "><br>
</div>
<div style="font-family: Helvetica; font-size: medium; ">I copied the examples in vtkGL2Exporter, resulting in code a bit like this:</div>
<div style="font-family: Helvetica; font-size: medium; "><br>
</div>
<div style="font-family: Helvetica; font-size: medium; ">
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(0, 132, 35); ">
<span style="color: rgb(0, 0, 0); "> </span>// create chart and add it to view</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">
chart_ = vtkSmartPointer<vtkChartXY>::New();</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">
view_->GetScene()->AddItem(chart_);</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; ">
<br>
</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; ">
<span class="Apple-tab-span" style="white-space:pre"></span>…</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; ">
<br>
</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; ">
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo"> svgExporter_->SetRenderWindow(view_->GetRenderWindow());</p>
</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; min-height: 13px; ">
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">
svgExporter_->SetFileFormatToSVG();</div>
</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">
svgExporter_->SetFilePrefix(filename);</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(0, 132, 35); ">
<span class="Apple-style-span" style="color: rgb(0, 0, 0); "> svgExporter_->CompressOff();</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">
svgExporter_->SetSortToBSP();</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; color: rgb(0, 132, 35); ">
<span class="Apple-style-span" style="color: rgb(0, 0, 0); "> svgExporter_->DrawBackgroundOn();</span></div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">
svgExporter_->Write3DPropsAsRasterImageOff();</div>
<div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Menlo; ">
svgExporter_->Write();</div>
</div>
<div style="font-family: Helvetica; font-size: medium; "><br>
</div>
<div style="font-family: Helvetica; font-size: medium; ">When I export, the resulting SVG looks fine, but there is no text. </div>
</div>
<div style="font-family: Helvetica; font-size: medium; "><br>
</div>
<div style="font-family: Helvetica; font-size: medium; ">I built this on Mac OS Lion 10.7.5 using VTK 5.10.1 and Qt 4.8.</div>
<div style="font-family: Helvetica; font-size: medium; "><br>
</div>
<div style="font-family: Helvetica; font-size: medium; ">Has anyone else encountered this issue? I couldn't find anything relevant on the forums. Thanks!</div>
<div style="font-family: Helvetica; font-size: medium; "><br>
</div>
<div style="font-family: Helvetica; font-size: medium; ">-Aaron</div>
</body>
</html>