[vtkusers] vtkCubeAxesActor setTitle string utf-8

AlexUtrobin AlexUtrobin at yandex.ru
Fri Jun 10 01:59:15 EDT 2016


I can not change the font and I can not show the Unicode text in
vtkCubeAxesActor. The same actions with vtkTextActor work. 
What am I doing wrong?


mCubeAxesActor=new vtkCubeAxesActor();
mCubeAxesActor.SetCamera(mRenderWindowPanel.GetRenderer().GetActiveCamera());   
mCubeAxesActor.GetTitleTextProperty(0).SetColor(1.0, 0.0, 0.0);
mCubeAxesActor.GetTitleTextProperty(0).SetFontFamily(4); //4-Шрифт из файла
mCubeAxesActor.GetTitleTextProperty(0).SetFontFile(jarDir+"font.ttf");
mCubeAxesActor.SetXTitle("Текст на русском языке");


mActorTitle = new vtkTextActor();
mActorTitle.GetTextProperty().SetFontFamily(4); //4-Шрифт из файла
mActorTitle.GetTextProperty().SetFontFile(jarDir+"font.ttf");
mActorTitle.GetTextProperty().SetFontSize(SizeTitle);
mActorTitle.SetInput("Текст на русском языке");



--
View this message in context: http://vtk.1045678.n5.nabble.com/vtkCubeAxesActor-setTitle-string-utf-8-tp5738615.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list