[vtkusers] Text vtkCaptionWidget

David Lonie david.lonie at kitware.com
Tue Sep 29 10:24:51 EDT 2015


vtkCaptionWidget's text size is controlled by the underlying
vtkCaptionActor2D's Position and Position2 parameters, which define the
rectangle in which the caption will be rendered. The actual font size is
adjusted to best fill the box.

Hope this helps,
Dave

On Mon, Sep 28, 2015 at 4:22 PM, Jose Barreto <jose.de.paula at live.com>
wrote:

> VtkCaptionWidget'm using, but I can not change the font size. I saw that
> there are ways within
> text-> GetCaptionActor2D () -> GetTextActor () -> SetTextScaleMode (), but
> it still makes the source move from automatic foma.
> I tried using text-> GetCaptionActor2D () -> GetCaptionTextProperty () ->
> SetFontSize (8);
> but with neither a combination of SetTextScaleMode () listens change the
> default font.
>
> There is something SetFontSize type? to set the font size independent of
> the
> box?
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Text-vtkCaptionWidget-tp5734162.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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150929/ff34f6af/attachment.html>


More information about the vtkusers mailing list