[vtkusers] How to set custom fonts to vtkVectorText using vtkFontConfigFreeTypeTools?

David Lonie david.lonie at kitware.com
Tue Jan 7 10:25:22 EST 2014


On Thu, Jan 2, 2014 at 2:20 PM, yarram <somasekhar.vit at gmail.com> wrote:

> Hello David,
>
> Thanks you for the reply, and for the information on custom fonts. But the
> problem is: I need to have polydata. I can get from vtkVectorText, but not
> from vtkTextActor3D. Is there any way I can get the polydata? Thanks in
> advance....
>

Unfortunately, there is currently no way to get unicode text rendered as
polydata in VTK. The only possibly way would be to use
vtkTextRenderer::StringToPath to generate a vtkPath bezier curve and
sample/triangulate the path manually (it will be tricky to figure out which
areas get shaded). Other than that, unicode can only be rendered to image
data.

Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140107/7f8b4ced/attachment.htm>


More information about the vtkusers mailing list