[vtkusers] Use UTF8 into vtkCornerAnnotation

jimmigoo jimmigoo at gmail.com
Tue Oct 27 06:13:24 EDT 2015


Hi everybody!

I would like to set UTF8 coded strings to vtkCornerAnnotation.

Investigating inside VTK class, I realized that on vtkCornerAnnotation
class, there are 4 vtkActor2D and 4 vtkTextMapper.

Derivating vtkCornerAnnotation class, I correctly set VTK_FONT_FILE family
and DejaVuSans.ttf font file to the 4 vtkTextMappers. Anyway, when I call
TextMapper[i]->SetInput(text) from
vtkCornerAnnotation::TextReplace(vtkImageActor *ia,
vtkImageMapToWindowLevelColors *wl), the UTF8 string I set from outside, is
not handled and I see strange characters (the UTF8 coding) on VTK scenario.

My question is: how I can see correctly symbols on vtkCornerAnnotation?

Do I have to build my own VTK class, or does already exist a (new) class
allowing to insert strings with special symbols?

I'm looking for your reply.

Kind Regards, 

jimmigoo

<http://vtk.1045678.n5.nabble.com/file/n5734611/cornerannotation.png> 



--
View this message in context: http://vtk.1045678.n5.nabble.com/Use-UTF8-into-vtkCornerAnnotation-tp5734611.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list