vtkCaptionActor2D is not scaling the text to fit the rectangle when font size is default or 12
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
To test it, just create a vtkCaptionActor2D and add it to a renderer.
See example here, tested in VTK 6.2:
import vtk
ren = vtk.vtkRenderer()
renWin = vtk.vtkRenderWindow()
renWin.AddRenderer(ren)
iren = vtk.vtkRenderWindowInteractor()
iren.SetRenderWindow(renWin)
actor = vtk.vtkCaptionActor2D()
actor.SetCaption(u'Hello')
# This makes it work:
actor.GetCaptionTextProperty().SetFontSize(13)
# This also makes it work:
actor.GetCaptionTextProperty().Modified()
# This doesn't make it work:
actor.GetCaptionTextProperty().SetFontSize(12)ren.AddActor(actor)
iren.Initialize()
iren.Start()