Leading spaces in input string causes vtkTextActor fail to render
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
String format for float numbers can produce output with leading spaces, e.g formatting -2.1 with "%5.3f". when this happens, vtk 5.6 will fail to output string and vtk error window will pop up with "Failed rendering text to buffer". Problem was tracked to vtkFreeTypeUtilities.GetGlyph, which returns bitmap width equal 0 for the space character.
vtk 5.02 we used before doesn't have this problem and render such text correctly.