<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div><span>I have no any problems with Unicode in QVTKWidget, but it not works (for me) with vtkOpenGLWidget and vtkOpenGLNativeWidget </span></div><div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;">  <div style="font-family: Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 13px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Sid Murthy <sid.murthy@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> David Lonie <david.lonie@kitware.com> <br><b><span style="font-weight: bold;">Cc:</span></b> Rustem Khabetdinov <rustem.khabetdinov@gmail.com>; "vtkusers@vtk.org" <vtkusers@vtk.org><br> <b><span style="font-weight: bold;">Sent:</span></b> Tuesday, February 26, 2019 7:15 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [vtkusers] Unicode text<br> </font> </div> <div class="y_msg_container"><br><div id="yiv0223941548"><div dir="ltr">Hi - I was wondering if this is still the case for the latest VTK version where unicode characters for text display are not supported by default? Currently we use Arial Unicode MS - which works fine - but are there freely licensed versions that would work?</div><br><div class="yiv0223941548gmail_quote"><div dir="ltr" class="yiv0223941548gmail_attr">On Thu, Aug 25, 2016 at 9:33 AM David Lonie <<a rel="nofollow" ymailto="mailto:david.lonie@kitware.com" target="_blank" href="mailto:david.lonie@kitware.com">david.lonie@kitware.com</a>> wrote:<br></div><blockquote class="yiv0223941548gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex;">On Thu, Aug 25, 2016 at 7:51 AM, Rustem Khabetdinov<br>
<<a rel="nofollow" ymailto="mailto:rustem.khabetdinov@gmail.com" target="_blank" href="mailto:rustem.khabetdinov@gmail.com">rustem.khabetdinov@gmail.com</a>> wrote:<br>
> Hello.<br>
><br>
> Is there any possibility to use unicode chars?(without using vtk2DActor)<br>
<br>
I'm not sure what you mean by vtk2DActor, but it is possible to render<br>
unicode text by configuring the vtkTextProperty's FontFamily to<br>
VTK_FONT_FILE and setting FontFile to a font file that supports the<br>
character you wish to use. The default fonts in VTK do not support<br>
much if any unicode, so you'll need to provide a font file.<br>
<br>
This approach will work for vtkTextActor, vtkTextActor3D, and vtkTextMapper.<br>
<br>
Example: <a rel="nofollow" target="_blank" href="https://github.com/Kitware/VTK/blob/master/Rendering/FreeType/Testing/Cxx/TestFreeTypeTextMapperNoMath.cxx#L148-L159">https://github.com/Kitware/VTK/blob/master/Rendering/FreeType/Testing/Cxx/TestFreeTypeTextMapperNoMath.cxx#L148-L159</a><br>
<br>
HTH,<br>
Dave<br>
_______________________________________________<br>
Powered by <a rel="nofollow" target="_blank" href="http://www.kitware.com/">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a rel="nofollow" target="_blank" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a rel="nofollow" target="_blank" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a rel="nofollow" target="_blank" href="http://markmail.org/search/?q=vtkusers">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a rel="nofollow" target="_blank" href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></div></div>_______________________________________________<br>Powered by www.kitware.com<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="https://vtk.org/mailman/listinfo/vtkusers" target="_blank">https://vtk.org/mailman/listinfo/vtkusers</a><br><br><br></div> </div> </div>  </div></div></body></html>