[vtk-developers] vtkGL2PSExporter emits no text
Aaron Knoll
knolla at tacc.utexas.edu
Thu Jan 17 11:49:24 EST 2013
Hello,
I am trying to use the vtkGL2PSExporter to write a vtkChartXY to SVG.
I copied the examples in vtkGL2Exporter, resulting in code a bit like this:
// create chart and add it to view
chart_ = vtkSmartPointer<vtkChartXY>::New();
view_->GetScene()->AddItem(chart_);
…
svgExporter_->SetRenderWindow(view_->GetRenderWindow());
svgExporter_->SetFileFormatToSVG();
svgExporter_->SetFilePrefix(filename);
svgExporter_->CompressOff();
svgExporter_->SetSortToBSP();
svgExporter_->DrawBackgroundOn();
svgExporter_->Write3DPropsAsRasterImageOff();
svgExporter_->Write();
When I export, the resulting SVG looks fine, but there is no text.
I built this on Mac OS Lion 10.7.5 using VTK 5.10.1 and Qt 4.8.
Has anyone else encountered this issue? I couldn't find anything relevant on the forums. Thanks!
-Aaron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20130117/0fe4d0ca/attachment.html>
More information about the vtk-developers
mailing list