[vtkusers] Cyrillic symbols in Scalar bar

David Lonie david.lonie at kitware.com
Thu Aug 18 09:12:04 EDT 2016


Can you provide a bit more context for this:

> this->SetFontFamily(VTK_FONT_FILE);
> this->SetFontFile("C:\\arial.ttf");

Since you're using a 'this' pointer, it sounds like you're subclassing
vtkTextProperty? That should not be necessary. Try calling those
methods on the specific text property associated with the scalar bar's
title:

vtkScalarBarActor *scalarBar = ...;
scalarBar->GetTitleTextProperty()->SetFontFamily(...);
scalarBar->GetTitleTextProperty()->SetFontFile(...);

HTH,
Dave


More information about the vtkusers mailing list