I want to place scaled fonts in viewport coordinates<br>and also want to define the maximum pixel-height of the<br>font.<br>Shouldnt the following code work ?<br>&nbsp;&nbsp; <br>----------------------------------------------------------------------------------------------<br>
&nbsp;&nbsp;&nbsp; vtkTextActor m_textActTop = vtkTextActor::New();<br>&nbsp;&nbsp;&nbsp; ....<br>&nbsp;&nbsp;&nbsp; m_textActTop-&gt;SetTextScaleModeToProp();<br>&nbsp;&nbsp;&nbsp; m_textActTop-&gt;GetTextProperty()-&gt;SetFontFamilyToArial();<br>&nbsp;&nbsp;&nbsp; m_textActTop-&gt;GetTextProperty()-&gt;SetColor(1.0,0.0,0.0);<br>
&nbsp; &nbsp; m_textActTop-&gt;GetPositionCoordinate()-&gt;SetCoordinateSystemToViewport();<br>&nbsp;&nbsp;&nbsp; m_textActTop-&gt;GetPositionCoordinate()-&gt;SetValue(X1,Y1);<br>&nbsp;&nbsp;&nbsp; m_textActTop-&gt;GetPosition2Coordinate()-&gt;SetCoordinateSystemToViewport();<br>
&nbsp;&nbsp;&nbsp; m_textActTop-&gt;GetPosition2Coordinate()-&gt;SetValue(X2,Y2);<br><br>----------------------------------------------------------------------------------------------<br><br>as I understand it, the position2 coordinates (X2,Y2) are relative to (X1,Y1)<br>
and therefore Y2 should determine the maximum height.<br>However, what happens is that position2 seems to control the actual<br>placement and position1 doesnt have any effect at all.<br><br>regards,<br>Oliver<br>