Chaning the size of vtkCaptionActor2D caption

Hello,

I am using vtkCaptionActor2D to label objects and the text is too big. Is there a way to change the size of the text? Correct me if I am wrong but I am quite sure you have to specify Position and Position2 arguments which are of type vtkCoordinates. I don’t know what function, … I would use.

Any help would be greatly appreciated.
Thanks!

1 Like

Here is a solution:

captionActor.GetTextActor().SetTextScaleModeToNone()
captionActor.GetCaptionTextProperty().SetFontSize(fontSize)

Hope it helps!

1 Like