[vtkusers] vtkChart - difficulty changing title colour and font size

Marcus D. Hanwell marcus.hanwell at kitware.com
Tue Dec 18 21:33:54 EST 2012


On Tue, Dec 18, 2012 at 6:00 PM, John Platt <jcplatt at dsl.pipex.com> wrote:
> Hi Arnaud,
>
> Unfortunately this has no effect either. I looked into the code and
>
> vtkOpenGLContextDevice2D::DrawString()
>
> searches a cache for previously rendered strings (I think). The key for the
> search is composed of an Id created by
>
> vtkFreeTypeTools::MapTextPropertyToId()
>
> plus the string. The Id does not use the text colour (just family, bold,
> italic & angle). So it keeps finding the old string.
>
This is a bug I fixed quite some time ago - I think if you upgrade to
VTK 5.10 the fix is present, and master, along with a new test to
verify functionality. I don't think the fix was ever backported to VTK
5.8.

Marcus



More information about the vtkusers mailing list