<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Sep 11, 2016 at 12:18 PM, 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>I want to give Chinese text annotation on 3D model.Does vtkCaptionActor2D support chinese characters? If no, what class should I use?<br></div></blockquote><div><br></div><div>vtkCaptionActor2D will work.</div><div><br></div><div>You'll need to provide a unicode font file (the embedded fonts in VTK only support ASCII) via the caption actor's GetCaptionTextProperty:</div><div><br></div><div><div>captionActor->GetCaptionTextProperty()->SetFontFamily(VTK_FONT_FILE);</div></div><div><div>captionActor->GetCaptionTextProperty()->SetFontFile("/path/to/some/unicode/font/file");</div></div><div><br></div><div>and then encode the caption text as UTF-8.</div><div><br></div><div>Hope this helps,</div><div>Dave</div><div><br></div><div> </div></div></div></div>