<div dir="ltr">Hi,<br><br>In order to display some Chinese character in vtk 6.1 or later, I think you need to load an external True type font, with those two lines<div><br><div>m_textActor->GetTextProperty()->SetFontFamily( VTK_FONT_FILE );</div><div>m_textActor->GetTextProperty()->SetFontFile( "C:/Path_to_font/DejaVu.ttf" );<br><br>Hope this help<br>Simon</div><div class="gmail_extra"><br><div class="gmail_quote">2015-04-27 11:31 GMT+02:00 lee <span dir="ltr"><<a href="mailto:lihouxing@yeah.net" target="_blank">lihouxing@yeah.net</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi, I am right now been bothered by the showing of Chinese Character on<br>
qvtkwidget.The following is my codes:<br>
*       QString temp;<br>
        temp="this is a test哦哦";<br>
        QMessageBox::information(this,"test",temp);<br>
        std::string str = temp.toStdString();<br>
        const char* ch = str.c_str();<br>
        m_textActor->SetInput(ch);<br>
        m_render->AddActor2D(m_textActor);<br>
        m_renWin->Render();*<br>
the result shows the English words correctly, but the last two Chinese word<br>
in a form which I don't understand.<br>
So I am wondering anyone who has solved this problem can share the methods.<br>
Thanks a lot.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Show-Chinese-Character-on-qvtkwidget-tp5731627.html" target="_blank">http://vtk.1045678.n5.nabble.com/Show-Chinese-Character-on-qvtkwidget-tp5731627.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>------------------------------------------------------------------<br>Simon Esneault<div>Rennes, France<br>------------------------------------------------------------------</div></div></div></div>
</div></div></div>