<div dir="ltr"><div><div>Dear David,<br><br></div>thank you very much for your response. It helps a lot! :) <br>I'm not really sure, what is "VTK master"? The current 6.0 release? Does VTK 5.8 or 5.10 also support Unicode?<br>
<br></div>Michael<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/11/20 David Lonie <span dir="ltr"><<a href="mailto:david.lonie@kitware.com" target="_blank">david.lonie@kitware.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Michael,<div><br></div><div>Support for unicode character sets was exposed in VTK master a couple of months ago. The tricky bit is that you must provide a specific font file, as the fonts currently embedded in VTK only support ASCII characters (this will likely change in the future). The current way of enabling unicode fonts is to configure vtkTextProperty with the desired font file, for instance:</div>
<div><br></div><div>vtkTextProperty *tprop = ...;</div><div>tprop->SetFontFamily(VTK_FONT_FILE);</div><div>tprop->SetFontFile("/path/to/some/font/file.ttf");</div><div><br></div><div>Do this for the actors that you want unicode for, and the proper glyphs will be pulled from the supplied font file. This should work everywhere except for vtkVectorText, which uses an entirely different method of rendering text.</div>
<div><br></div><div>See TestChartUnicode and TextContextUnicode in the Charts/Core module for examples.</div><div><br></div><div>BTW, I recommend grabbing the DejaVu true type fonts -- they are rather openly licensed, and they are what we use internally for testing.</div>
<div><br></div><div>Hope this helps,</div><div><br></div><div>Dave</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Wed, Nov 20, 2013 at 12:52 PM, Michael Xanadu <span dir="ltr"><<a href="mailto:xanadu.michael@googlemail.com" target="_blank">xanadu.michael@googlemail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div><div><div><div>Dear Friends,<br><br></div></div>What is the current state concerning the support of unicode in VTK? E.g. is it possible to display unicode charcters via vtkCaptionActor2D or vtkCornerAnnotation? If yes, which requirements do I have to meet (version etc.)?<br>
</div>I have not found any clear information about the topic via google so far.<br><br><br></div>Thanks in advance,<br></div>Michale<br></div>
<br></div></div>_______________________________________________<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>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>