<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; color: rgb(34, 34, 34); ">Thank you Pof to test it! Now, I hope it will be applied to the dev branch.<div><br>
</div><div>Yes, the problem with accentuated characters is already solved. Therefore, next VTK release will not have that problem. However, if you are interested on it now, you can apply this patch: <a href="http://vtk.org/gitweb?p=VTK.git;a=patch;h=331a44656276882766248c1f8e338434b40226ef" target="_blank" style="color: rgb(53, 66, 88); ">http://vtk.org/gitweb?p=VTK.git;a=patch;h=331a44656276882766248c1f8e338434b40226ef</a>.</div>
<div><br></div><div>Let me know if it works.</div><div><br></div><div><font color="#888888">Roger</font></div></span><br><div class="gmail_quote">On Wed, Sep 8, 2010 at 1:18 PM, pof <span dir="ltr">&lt;<a href="mailto:jd379252@gmail.com">jd379252@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

  
    
    
  
  <div bgcolor="#ffffff" text="#000000">
    Hi Roger,<br>
    I applied your patch to vtk5.6.0, and this fully solve the shadow
    problem, great!<br>
    Still I &#39;ve got this problem with accuentuated characters (which of
    course was your patch was aiming to solve). If I understand well
    your reponse, this is already solved in the dev branch, am I
    correct?<br>
    Pof<br>
    <br>
    Le 06/09/2010 08:52, Roger Bramon Feixas a écrit :
    <div><div></div><div class="h5"><blockquote type="cite">Hi Pof,
      <div><br>
      </div>
      <div>Since VTK 5.2.0, vtkTextActor is rendered using glyphs
        instead of OpenGL. I also had that problem but it was solved in
        that commit <a href="http://vtk.org/gitweb?p=VTK.git;a=commit;h=331a44656276882766248c1f8e338434b40226ef" target="_blank">http://vtk.org/gitweb?p=VTK.git;a=commit;h=331a44656276882766248c1f8e338434b40226ef</a>
        when UTF8 text rendering was enabled. It&#39;s after VTK 5.6 was
        released.</div>
      <div><br>
      </div>
      <div>On the other hand, I suppose you still have problems
        rendering text with shadow, as you reported in that issue: <a href="http://vtk.org/Bug/view.php?id=9618" target="_blank">http://vtk.org/Bug/view.php?id=9618</a>.
        I tried to solve it and I attached a patch in that issue waiting
        for feedback. It would be wonder if you could test it and let me
        know if it works well.</div>
      <div><br>
      </div>
      <div>Thanks,</div>
      <div><br>
      </div>
      <div>Roger</div>
      <div><br>
        <br>
        <div class="gmail_quote">On Fri, Sep 3, 2010 at 2:12 PM, Pof <span dir="ltr">&lt;<a href="mailto:jd379252@gmail.com" target="_blank">jd379252@gmail.com</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">Hi all,<br>
            <br>
            I am having trouble displaying accentuated characters in
            vtkTextActor with vtk5.6.0 under MS-VC++2005.<br>
            Here below is an exemple that reproduces the problem, by
            printing the same string than contains accents &quot;é,è,à&quot;.<br>
            When I run this small prog, as a result I obtain that
            accentuated characters (é,è...) are :<br>
            - correctly displayed when used in a vtkScalarBarActor
            title,<br>
            - not displayed when incorporated in vtkTextActor.<br>
            <br>
            Any idea where does this come from and how to solve it?<br>
            <br>
            As an additional comment, this used to work correctly under
            vtk5.0.x, it is only broken from vtk5.2.x up to vtk5.6.0.<br>
            <br>
            Thanks<br>
            JD<br>
            <br>
            <br>
            //////////////////////////////////////////////////////<br>
            ////////////////// vtkTextActor bug //////////////////<br>
            //////////////////////////////////////////////////////<br>
            #include &quot;vtkActor.h&quot;<br>
            #include &quot;vtkRenderer.h&quot;<br>
            #include &quot;vtkRenderWindow.h&quot;<br>
            #include &quot;vtkRenderWindowInteractor.h&quot;<br>
            #include &quot;vtkCamera.h&quot;<br>
            #include &quot;vtkTextProperty.h&quot;<br>
            #include &quot;vtkTextActor.h&quot;<br>
            #include &quot;vtkActor2D.h&quot;<br>
            #include &quot;vtkLookupTable.h&quot;<br>
            #include &quot;vtkScalarBarActor.h&quot;<br>
            <br>
            int main()<br>
            {<br>
                // Tested string<br>
                char text[] = &quot;Test: é, è, à&quot;;<br>
            <br>
                // Create an example text actor<br>
                vtkTextActor *textActor = vtkTextActor::New();<br>
                textActor-&gt;SetInput(text);<br>
               
textActor-&gt;GetPositionCoordinate()-&gt;SetCoordinateSystemToNormalizedViewport();<br>
                textActor-&gt;SetPosition(0.50,0.50);<br>
                textActor-&gt;GetTextProperty()-&gt;SetFontSize(30);<br>
               
            textActor-&gt;GetTextProperty()-&gt;SetJustificationToCentered();<br>
                textActor-&gt;GetTextProperty()-&gt;SetColor(1, 0, 0);<br>
            <br>
                // Create a Lut<br>
                vtkLookupTable *Lut = vtkLookupTable::New();<br>
                Lut-&gt;SetHueRange (160.0/240.0, 0.0);<br>
                Lut-&gt;SetSaturationRange (1.0, 1.0);<br>
                Lut-&gt;SetValueRange (1.0, 1.0);<br>
                Lut-&gt;SetTableRange (0,100);<br>
                Lut-&gt;Build();<br>
            <br>
                // Create a ScalarBarActor<br>
                vtkScalarBarActor *scalarBar = vtkScalarBarActor::New();<br>
                scalarBar-&gt;SetTitle(text);<br>
                scalarBar-&gt;SetLookupTable(Lut);<br>
                scalarBar-&gt;SetHeight(0.5);<br>
                scalarBar-&gt;SetWidth(0.1);<br>
                scalarBar-&gt;SetPosition(0.10,0.01);<br>
                scalarBar-&gt;SetPosition2(0.80,0.1);<br>
                scalarBar-&gt;SetOrientationToHorizontal();<br>
            <br>
                // Create the graphics structure<br>
                vtkRenderer *ren = vtkRenderer::New();<br>
                vtkRenderWindow *renWin = vtkRenderWindow::New();<br>
                renWin-&gt;AddRenderer(ren);<br>
                renWin-&gt;SetSize(600, 600);<br>
                vtkRenderWindowInteractor *iren =
            vtkRenderWindowInteractor::New();<br>
                iren-&gt;SetRenderWindow(renWin);<br>
            <br>
                // Add the actors to the renderer, set the background
            and size<br>
                ren-&gt;AddActor(textActor);<br>
                ren-&gt;AddActor(scalarBar);<br>
                ren-&gt;SetBackground(0.1, 0.2, 0.4);<br>
                ren-&gt;ResetCamera();<br>
                ren-&gt;GetActiveCamera()-&gt;Zoom(1.0);<br>
                renWin-&gt;Render();<br>
            <br>
                // Starts the event loop<br>
                iren-&gt;Start();<br>
            <br>
                // Do some cleaning<br>
                textActor-&gt;Delete();<br>
                Lut-&gt;Delete();<br>
                scalarBar-&gt;Delete();<br>
                ren-&gt;Delete();<br>
                renWin-&gt;Delete();<br>
                iren-&gt;Delete();<br>
            <br>
                return 0;<br>
            }<br>
            <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>
            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>
    <br>
  </div></div></div>

</blockquote></div><br>