[vtkusers] How to use fonts with vtkTextActor?

rakesh patil prakeshofficial at gmail.com
Thu Mar 29 04:22:51 EDT 2012


Hi Najzero,

Well, I went through the FTGL tutorial. Now the question arises, how to
link ftgl with VTK..?? I saw there were few font files in
 \VTK\Rendering\fonts\
folder.. From where will I get such font files and corresponding cxx files?
Do I have to write cxx file manually for each font and style?

Thanks

Regards
Rakesh Patil

On Wed, Mar 28, 2012 at 12:10 PM, Najzero <adrian.gabriel at 4plus.de> wrote:

> Hi Rakesh,
>
> if I remember correct vtkTextActor uses FTGL to render its fonts
> (FTGLPixmapFont to be precise).
>
> So as long as FTGL can read you should be able to import/create them for
> later use in VTK
>
>
> You might want to have a look here:
> http://ftgl.sourceforge.net/docs/html/ftgl-tutorial.html
> aswell as into your \VTK\Rendering\fonts\ folder.
> There you can see the presupported fonts in a buffered stream... if you are
> interested look into vtkVectorText (from /hybrid/) there its even worse.
>
> I did not follow the results but maybe you like to have a look at:
> http://www.vtk.org/pipermail/vtk-developers/2010-October/008793.htmlaswell
> - maybe ask Markus Hanwell what became out of that.
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/How-to-use-fonts-with-vtkTextActor-tp5599468p5599671.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120329/f652323b/attachment.htm>


More information about the vtkusers mailing list