<div dir="ltr"><div><div><div>That worked! Worked like a charm<br></div>I cannot wrap my head around why I didnt try that myself<br><br></div>Thanks Dave<br></div>Much Appreciated<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 22, 2014 at 11:36 AM, David Lonie <span dir="ltr"><<a href="mailto:david.lonie@kitware.com" target="_blank">david.lonie@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Alok,<div><br></div><div>As for the differences between vtkCornerAnnotation and vtkTextActor, vtkCornerAnnotation uses the vtkTextMapper under the covers, which hasn't seen as much attention lately as the other classes.</div><div><br></div><div>I don't have time at the moment to track down why the "\u00b0" literal is getting garbled, but I did notice that using "\xb0" instead seems to be work fine. It seems to be something screwy in the utf8 --> utf16 conversion before rendering...</div><div><br></div><div>Try using "\xb0" instead and let me know if that works for you.</div><div><br></div><div>Hope this helps,</div><div>Dave</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Tue, Oct 21, 2014 at 5:04 PM, Alok <span dir="ltr"><<a href="mailto:alok.theanomaly@gmail.com" target="_blank">alok.theanomaly@gmail.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>I cloned the git repo some time time back and built from source<br></div>The vtkTextActor/vtkTextWidget seem to be working fine with unicode but I see some other problems which make them unusable for me.<br><br></div>Any recommendations on how to check the difference between vtkCornerAnnotation and the vtkTextActor will be great. Seems like an easy fix<br><br></div>Thanks<br></div><div class="gmail_extra"><span><br><div class="gmail_quote">On Tue, Oct 21, 2014 at 4:49 PM, Sean McBride <span dir="ltr"><<a href="mailto:sean@rogue-research.com" target="_blank">sean@rogue-research.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tue, 21 Oct 2014 12:46:15 -0400, Alok said:<br>
<br>
>I have been trying for a while to display a degree symbol in<br>
>vtkCornerAnnotation.<br>
><br>
>The way I am trying to do it is like this:<br>
>std;:string angle = computeAngle()+"\u00B0";<br>
>cornerAnnotation->SetText(3,angle.c_str()); //where cornerAnnotation if of<br>
>type vtkCornerAnnotation.<br>
><br>
>This displays something like 50° rather than 50°<br>
>When I display the string on a terminal it works as expected.<br>
<br>
In the past, VTK hasn't had very good Unicode support. I'm not sure where it stands today actually. What version of VTK are you using? You'll have the best results with the newest version I expect.<br>
<br>
Cheers,<br>
<span><font color="#888888"><br>
--<br>
____________________________________________________________<br>
Sean McBride, B. Eng <a href="mailto:sean@rogue-research.com" target="_blank">sean@rogue-research.com</a><br>
Rogue Research <a href="http://www.rogue-research.com" target="_blank">www.rogue-research.com</a><br>
Mac Software Developer Montréal, Québec, Canada<br>
<br>
<br>
</font></span></blockquote></div><br><br clear="all"><br></span><span>-- <br><div dir="ltr">I live a simple life... in 0s and 1s !</div>
</span></div>
<br></div></div><span class="">_______________________________________________<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://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
<br></span></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">I live a simple life... in 0s and 1s !</div>
</div>