View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013152VTK(No Category)public2012-05-07 08:442013-06-26 07:51
ReporterPof 
Assigned ToDavid C. Lonie 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version5.8.0 
Target VersionFixed in Version6.0.1 
Summary0013152: vtkTextActor->ShadowOn() : very bad looking
DescriptionWhen activating shadows for a vtkTextActor,
the general look of the text (by far) not as readable as it used to be in vtk5.0.0, which sometimes makes it almost unreadable.
See the two examples in the attached image for a better view of the problem.
TagsNo tags attached.
ProjectKitware
Typeincorrect functionality
Attached Filespng file icon Text Shadow.png [^] (76,350 bytes) 2012-05-07 08:44


cxx file icon vtkFreeTypeUtilities.cxx [^] (57,515 bytes) 2012-05-07 11:53
png file icon Corrected 5.10.0.png [^] (37,583 bytes) 2012-05-07 11:59


cpp file icon Test_vtkTextActor.cpp [^] (2,832 bytes) 2012-05-07 12:08

 Relationships

  Notes
(0028580)
Pof (reporter)
2012-05-07 11:55
edited on: 2012-05-07 12:15

The error comes from 2 methods in vtkFreeTypeUtilities :
- GetBoundingBox
- PopulateImageData

Attached is the corrected source file which solves the problem (see the last image).

Worth mentionning that the original patch was submitted 2 years ago by Roger Bramon (see http://vtk.org/Bug/view.php?id=9618 [^]), and it was supposed to be incorporated in version 5.8.0 (see Markus comment).
Here, I just included this patch into the last version (i.e. 5.10.0_RC3) of the vtkFreeTypeUtilities.cxx file.


Last, the source used to generate the image is given (Test_vtkTextActor.cpp).

(0028587)
Dave DeMarle (administrator)
2012-05-10 13:51

commit: 35944bf09ccba7f42eb014678033395405feb9a9
brings Pof's fix into VTK.

TODO: Turn Test_vtkTextActor into a regression test.
(0031076)
Dave DeMarle (administrator)
2013-06-25 17:00

Ended up taking this out before 5.10.0 as it lead to a /0 in regression tests.
(0031083)
David C. Lonie (developer)
2013-06-26 07:51

This bug is no longer present since the switch to vtkFreeTypeTools/vtkTextRenderer.

 Issue History
Date Modified Username Field Change
2012-05-07 08:44 Pof New Issue
2012-05-07 08:44 Pof File Added: Text Shadow.png
2012-05-07 11:53 Pof File Added: vtkFreeTypeUtilities.cxx
2012-05-07 11:55 Pof Note Added: 0028580
2012-05-07 11:59 Pof File Added: Corrected 5.10.0.png
2012-05-07 11:59 Pof Note Edited: 0028580
2012-05-07 12:07 Pof Note Edited: 0028580
2012-05-07 12:08 Pof File Added: Test_vtkTextActor.cpp
2012-05-07 12:12 Pof Note Edited: 0028580
2012-05-07 12:12 Pof Note Edited: 0028580
2012-05-07 12:15 Pof Note Edited: 0028580
2012-05-10 13:51 Dave DeMarle Note Added: 0028587
2013-06-25 17:00 Dave DeMarle Note Added: 0031076
2013-06-26 07:50 David C. Lonie Assigned To => David C. Lonie
2013-06-26 07:50 David C. Lonie Status backlog => tabled
2013-06-26 07:51 David C. Lonie Note Added: 0031083
2013-06-26 07:51 David C. Lonie Status tabled => closed
2013-06-26 07:51 David C. Lonie Resolution open => fixed
2013-06-26 07:51 David C. Lonie Fixed in Version => 6.0.1


Copyright © 2000 - 2018 MantisBT Team