<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sat, Sep 17, 2016 at 11:26 AM, Liu_tj <span dir="ltr"><<a href="mailto:tjlp@netease.com" target="_blank">tjlp@netease.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi, <br><br>I use vtkCaptionWidget to display text annotation on 3D model. My issue is the font size of the text. Below is my C# code:<br><br>vtkCaptionRepresentation rep = vtkCaptionRepresentation.New()<wbr>;<br>rep.GetCaptionActor2D().<wbr>ThreeDimensionalLeaderOff();<br>rep.GetCaptionActor2D().<wbr>GetTextActor().<wbr>GetTextProperty().SetFontSize(<wbr>100);<br>rep.GetCaptionActor2D().<wbr>GetTextActor().<wbr>GetTextProperty().<wbr>SetFontFamily(4);<br>rep.GetCaptionActor2D().<wbr>GetTextActor().<wbr>GetTextProperty().SetFontFile(<wbr>"simsunb.ttf");<br>rep.GetCaptionActor2D().<wbr>GetCaptionTextProperty().<wbr>SetColor(0.0, 1.0, 0.0);</div></blockquote><div><br></div><div>Try setting it on rep.GetCaptionActor2D().GetTextProperty() instead of rep.GetCaptionActor2D().GetTextActor().GetTextProperty().</div><div><br></div><div>Dave</div></div></div></div>