[vtkusers] Y label strange in vtkAxesActor
Julien Finet
julien.finet at kitware.com
Thu Sep 27 09:22:53 EDT 2012
What is wrong:
The right part of the Y letter is drawn on the left side (-> letter wrap).
:-)
Explanation attempt:
Because the text is in Italic, vtkTextActor fails to pick the correct font
size for a given area to draw in.
It wrongly picks a width too narrow, so when it renders the letter as a
texture within a (too narrow) area, the texture wraps.
You might want to investigate within vtkTextActor (especially
vtkTextActor::ComputeScaledFont) and aggregated classes.
For information, vtkAxesActor uses vtkCaptionActor2D that internally uses a
vtkTextActor with a CaptionTextProperty text property that is
bold,italic,arial,with shadows.
Hth,
Julien.
On Tue, Sep 25, 2012 at 4:17 PM, Billy Araujo <billyaraujo at gmail.com> wrote:
> What is wrong with y label?
>
> Billy.
>
>
> [image: Inline image 1]
>
> _______________________________________________
> 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/20120927/81685791/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 63239 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120927/81685791/attachment.png>
More information about the vtkusers
mailing list