[vtkusers] Y label strange in vtkAxesActor

Frederic Perez fredericperez at about.me
Thu Sep 27 11:02:52 EDT 2012


Hello Billy,

then, using the knowledge shared by Julien, you might try a quick-and-dirty
hack to render that Y letter completely by substituting the label from "Y"
to "Y " (with an extra space). Would that work? Didn't try it myself..

Frederic

On Thu, Sep 27, 2012 at 3:22 PM, Julien Finet <julien.finet at kitware.com>wrote:

> 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
>>
>>
>
> _______________________________________________
> 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/124537b8/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/124537b8/attachment.png>


More information about the vtkusers mailing list