[vtkusers] Missing TestQtLabelStrategy test ( was Re: vtkLabelPlacer - Turkish Characters)

Jeff Baumes jeff.baumes at kitware.com
Tue Nov 17 08:53:49 EST 2009


Jason Shepherd has worked on this test. I believe the issue was that
since Qt uses the underlying system fonts, each one would look a bit
differently on each system. He has integrated a workaround for this
where we tell Qt to load a specific font file, but I'm not sure
whether it was ever quite completed.

Jeff

2009/11/16 Mathieu Malaterre <mathieu.malaterre at gmail.com>:
> Jeff, it looks like the test TestQtLabelStrategy has never been
> activated. Is there any reason why ?
>
> Thanks,
>
> 2009/10/6 Jeff Baumes <jeff.baumes at kitware.com>:
>> First, you will need to build VTK with VTK_USE_QT on. You can use
>> vtkUnicodeStringArray which holds instances of vtkUnicodeString.
>> vtkUnicodeString has methods for storing strings from UTF-8 and
>> UTF-16.
>>
>> I don't know the version of VTK you are using, but the best approach
>> is to use the new vtkLabelPlacementMapper which is in the latest
>> development CVS. Details on how to use it are here:
>>
>> http://www.kitware.com/InfovisWiki/index.php/Labels
>>
>> Alternatively, you may use the vtkQtLabelRenderStrategy directly to
>> render unicode strings.
>>
>> Jeff
>>
>> 2009/10/6 Murat Aydın <murat.aydin at netcad.com.tr>:
>>> Hi,
>>>
>>> How can i display Turkish Characters with vtkLabelPlacer? Is there a way to
>>> set character encoding ?
>>>
>>> Kind Regards,
>>>
>>> murat aydin
>>> _______________________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the VTK FAQ at:
>>> http://www.vtk.org/Wiki/VTK_FAQ
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>>
>>>
>>
>>
>>
>> --
>> Jeff Baumes, Ph.D.
>> R&D Engineer, Kitware Inc.
>> (518) 881-4932
>> jeff.baumes at kitware.com
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>
>
>
> --
> Mathieu
>



More information about the vtkusers mailing list