[vtkusers] Display outlined text with VTK

Bill Lorensen bill.lorensen at gmail.com
Wed Aug 23 16:07:21 EDT 2017


There are no outlined fonts supplied with vtk, but there are many
available on the web. For example:
http://www.1001freefonts.com/outline-fonts.php

You can load a font into VTK form a ttf. See this example:
https://lorensen.github.io/VTKExamples/site/Cxx/Visualization/FontFile/

Bill

On Wed, Aug 23, 2017 at 9:37 AM, Allie Vacanti
<allison.vacanti at kitware.com> wrote:
> Outlined text is not available in VTK. You may want to play with the
> background color/opacity settings and maybe a drop shadow (see
> vtkTextProperties) to increase visibility on noisy backgrounds.
>
> HTH,
> Allie
>
> On Wed, Aug 23, 2017 at 5:25 AM, Simon Esneault
> <simon.esneault at gmail.com> wrote:
>> Hello community,
>>
>> Does anyone know a way to display an outlined text with VTK ?
>> In order to get a result like this :
>> https://i.stack.imgur.com/BdGB7.png
>>
>> We use a lot of text actor to display information on top of CT scan images,
>> and sometimes it's hard to find a proper text color that makes the text very
>> readable on top of an images with high intensity changes.
>> An outlined text could be a good solution to display a clear text, whatever
>> the underlying image is (like VLC does with subtitles ^^)
>>
>> Any idea ?
>>
>> Thanks
>>
>> Simon
>>
>> --
>> ------------------------------------------------------------------
>> Simon Esneault
>> Rennes, France
>> ------------------------------------------------------------------
>>
>> _______________________________________________
>> 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
>>
>> Search the list archives at: http://markmail.org/search/?q=vtkusers
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/vtkusers
>>
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the vtkusers mailing list