[vtkusers] Width of text

Lodron, Gerald Gerald.Lodron at joanneum.at
Wed Apr 6 04:48:43 EDT 2011


Hi

Is there a possibiltiy to get the widht of the text in pixels when i have vtkTextActor or vtkTextProperty?




vtkTextActor* poTextActor = vtkTextActor::New();

poTextActor->SetInput("ABC");



std::cout << "Width: " << poTextActor->GetWidth()<< std::endl; // always 0.5
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110406/f36a6377/attachment.htm>


More information about the vtkusers mailing list