MantisBT - VTK
View Issue Details
0013476VTK(No Category)public2012-09-27 11:232013-06-25 14:49
baraujo 
Dave DeMarle 
normalminorhave not tried
closedfixed 
5.10.0 
6.0.0 
TBD
incorrect functionality
0013476: The right part of the Y letter is drawn on the left side (-> letter wrap).
Version 5.10.

Because the text is in Italic, vtkTextActor fails to pick the correct font size for a given area to draw in.
It wrongly picks a width too narrow, so when it renders the letter as a texture within a (too narrow) area, the texture wraps.
You might want to investigate within vtkTextActor (especially vtkTextActor::ComputeScaledFont) and aggregated classes.

For information, vtkAxesActor uses vtkCaptionActor2D that internally uses a vtkTextActor with a CaptionTextProperty text property that is bold,italic,arial,with shadows.

No tags attached.
png image.png (63,239) 2012-09-27 11:23
https://www.vtk.org/Bug/file/9287/image.png
png
Issue History
2012-09-27 11:23baraujoNew Issue
2012-09-27 11:23baraujoFile Added: image.png
2013-06-25 14:49Dave DeMarleNote Added: 0031069
2013-06-25 14:49Dave DeMarleAssigned To => Dave DeMarle
2013-06-25 14:49Dave DeMarleStatusbacklog => tabled
2013-06-25 14:49Dave DeMarleResolutionopen => fixed
2013-06-25 14:49Dave DeMarleProduct Version => 5.10.0
2013-06-25 14:49Dave DeMarleFixed in Version => 6.0.0
2013-06-25 14:49Dave DeMarleStatustabled => closed

Notes
(0031069)
Dave DeMarle   
2013-06-25 14:49   
According to Dave Lonie, this was fixed in the text rendering refactoring that went into 6.0.