[vtkusers] Display outlined text with VTK

Simon Esneault simon.esneault at gmail.com
Thu Aug 24 04:06:05 EDT 2017


Hello Bill,

Ah that's clever, I never thought about this solution ! And we're already
using an external font in order to render properly foreigner characters
Now I just need to find an outlined font that can handle Chinese, Cyrillic
and Arabic character properly (gasp)

Anyway, thanks for your answer

Simon

2017-08-23 22:07 GMT+02:00 Bill Lorensen <bill.lorensen at gmail.com>:

> 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
>



-- 
------------------------------------------------------------------
Simon Esneault
Rennes, France
------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20170824/527c1b4a/attachment.html>


More information about the vtkusers mailing list