MantisBT - VTK
View Issue Details
0003280VTK(No Category)public2006-05-24 16:472016-08-12 09:54
Jeff Lee 
David C. Lonie 
urgentmajoralways
closedmoved 
 
 
TBD
incorrect functionality
0003280: vtkTextActor messed up.
The text does not look correct, positions are wrong, shadows are wrong. Some side effects when using the new text mapper are that images disappear in the render window. Other side effects include segfaults when a window is resized which causes the text to be resized (this happens in vtkFreeTypeUtilities where the image is no longer resized to a power of 2, the code dies in a libc malloc.) Some of these problems can be seen by running some of the widgets examples which use scaled vtkTextActors.
No tags attached.
Issue History
2008-05-06 15:36Lisa AvilaAssigned ToLisa Avila => Sebastien Barre
2008-05-06 15:45Sebastien BarreNote Added: 0011727
2008-05-06 15:45Sebastien BarreAssigned ToSebastien Barre => Lisa Avila
2010-12-15 11:59tomaszNote Added: 0024168
2010-12-15 12:01tomaszNote Added: 0024170
2010-12-15 14:50Lisa AvilaAssigned ToLisa Avila => Will Schroeder
2010-12-19 05:30tomaszNote Added: 0024261
2010-12-20 16:21tomaszNote Added: 0024297
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2013-07-22 21:01Dave DeMarleProject => TBD
2013-07-22 21:01Dave DeMarleType => incorrect functionality
2013-07-22 21:01Dave DeMarleNote Added: 0031312
2013-07-22 21:01Dave DeMarleAssigned ToWill Schroeder => David C. Lonie
2013-07-22 21:01Dave DeMarleStatusbacklog => expired
2016-08-12 09:54Kitware RobotNote Added: 0036870
2016-08-12 09:54Kitware RobotStatusexpired => closed
2016-08-12 09:54Kitware RobotResolutionopen => moved

Notes
(0011727)
Sebastien Barre   
2008-05-06 15:45   
I haven't done text rendering since 2001.
Since then, Zach and Will took over.
You may want to pick one :)
(0024168)
tomasz   
2010-12-15 11:59   
The documentation is also in error by "This class ... acts as a convenient wrapper for a vtkTextMapper/vtkActor2D pair"
It is completely different from vtkTextMapper.
(0024170)
tomasz   
2010-12-15 12:01   
Furthermore is does 7 bit chars only (not only to me. See 0004501)
(0024261)
tomasz   
2010-12-19 05:30   
I've recently digged a bit deeper into 5.6.1 source code - not to fix it (i'm not going to fix it) - to find out "why" vtkTextActor is such a mess. Here my findings:
1. With vtk 4.2.1 vtkTextActor was ok, thus "the mess" has eventuylly to do with changes between 4.2 and 5.0.
2. With vtk 5.0 the mess was already there (while moving feom 4.2 to 5.4 in the passt we've made the stop at 5.0 and have seen same "mess" already there).
3. Actually vtkCaptionActor2D shows same mess - well, because it uses vtkTextActor obviously.
4. Displaying text is processed correctly within vtkScalarBarActor for example. Also vtkLabeledDataMapper does its work well. vtkCubeAxesActor2D too.
All have no problem displaying (at least) 8 bit characters too.
None of them uses vtkTextActor! They eventually use vtkTextMapper/vtkActor2D instead.
5. vtkTextActor::RenderOpaqueGeometry does this->FreeTypeUtilities->RenderString(...) and it is the only to use it!

In short:
- all classes using "messed up" vtkTextActor are "messed" too.
- others using vtkTextMapper/vtkActor2D "work like a dream" (look correct, positions are correct, shadows are correct, 8bit chars are correct, ...).
- the "mess" has to do with FreeTypeUtilities.
hope this helps to resolve soon.
(0024297)
tomasz   
2010-12-20 16:21   
Ref issues also: 0009618, 0010905, 0008372 and 0004509 (and this one is 0003280)
(0031312)
Dave DeMarle   
2013-07-22 21:01   
Try 6.0.0, Dave L's work in 5.10 and 6.0 probably cleared many of these issues up.
(0036870)
Kitware Robot   
2016-08-12 09:54   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.