<html><body><div>Hi,<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>We are trying to add unicode to our vtk render windows and we haven't been able to get it to work.<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>I modified the DrawText.cxx example with the following<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>// Setup the text and add it to the renderer<br>  vtkSmartPointer<vtkTextActor> textActor = <br>    vtkSmartPointer<vtkTextActor>::New();<br>  std::string testString = u8"I have a red car.";<br>  textActor->SetInput (testString.c_str());<br>  textActor->SetPosition2 ( 10, 40 );<br>  textActor->GetTextProperty()->SetFontSize ( 24 );<br>  textActor->GetTextProperty()->SetColor ( 1.0, 0.0, 0.0 );<br>  renderer->AddActor2D ( textActor );<br>  <br><br>  // Setup the text and add it to the renderer<br>  vtkSmartPointer<vtkTextActor> textActor2 =<br>      vtkSmartPointer<vtkTextActor>::New();<br>  std::string testString2 = u8"我有一辆红色的汽车。";<br>  textActor2->SetInput(testString2.c_str());<br>  textActor2->SetPosition(10, 80);<br>  textActor2->GetTextProperty()->SetFontFamilyAsString("Microsoft YaHei");<br>  textActor2->GetTextProperty()->SetFontFile("D:\\Projects\\DrawText\\msyhl.ttc");<br><br>  textActor2->GetTextProperty()->SetFontSize(24);<br>  textActor2->GetTextProperty()->SetColor(0.0, 0.0, 1.0);<br>  renderer->AddActor2D(textActor2);<br>  // Render and interact<br>  renderWindow->Render();</div><div><br data-mce-bogus="1"></div><div>but nothing draws for the chinese text. Is there anything else needed? Or is it a bug?<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>I can make my DrawText.cxx, Cmake and font file available.<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Thanks<br data-mce-bogus="1"></div><div><br data-mce-bogus="1"></div><div>Rick Frank<br data-mce-bogus="1"></div></body></html>