[vtkusers] Distorted characters when justification is centered. HELP
Oliver Kania
okania7 at googlemail.com
Wed Dec 17 07:24:22 EST 2008
We sometimes get distortions like in the attached image when we
set the justification of fonds to centered. This happens both with
scaled and non scaled fonts, but I think only if the font size is less than
15 or something.
Here is some example code :
vtkTextActor* m_textActTop = vtkTextActor::New();
.....
m_textActTop->SetTextScaleModeToViewport();
m_textActTop->GetTextProperty()->SetJustificationToCentered();
m_textActTop->GetTextProperty()->SetFontSize(12);
m_textActTop->SetNonLinearFontScale(0.1,12);
m_textActTop->GetTextProperty()->SetFontFamilyToArial();
Any help would be greatly appreciated.
Oliver
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20081217/13a824a3/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DistortedFont.bmp
Type: image/bmp
Size: 70938 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20081217/13a824a3/attachment.bin>
More information about the vtkusers
mailing list