<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19393">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Hi Arnaud,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Unfortunately this has no effect either. I looked
into the code and <FONT size=2>
<P>vtkOpenGLContextDevice2D::DrawString()</P>
<P>searches a cache for previously rendered strings (I think). The key for the
search is composed of an Id created by <FONT size=2></P>
<P>vtkFreeTypeTools::MapTextPropertyToId()</P>
<P>plus the string. The Id does not use the text colour (just family, bold,
italic & angle). So it keeps finding the old string.</P>
<P>Thanks for your help.</P>
<P>John.</P></FONT></FONT></FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"
dir=ltr>
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B>
<A title=arnaud.barre@gmail.com href="mailto:arnaud.barre@gmail.com">Arnaud
BARRE</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=jcplatt@dsl.pipex.com
href="mailto:jcplatt@dsl.pipex.com">John Platt</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Cc:</B> <A title=vtkusers@vtk.org
href="mailto:vtkusers@vtk.org">vtkusers</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, December 18, 2012 9:46
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [vtkusers] vtkChart -
difficulty changing title colour and font size</DIV>
<DIV><BR></DIV>
<DIV dir=ltr>
<DIV>Hi John,<BR></DIV>
<DIV><BR></DIV>
<DIV>You may need to set the chart as modified:
myChart->Modified();<BR><BR></DIV>
<DIV>It this doesn't work, could you write a minimal example to able to
replicate your problem?<BR><BR></DIV>
<DIV>Arnaud<BR></DIV></DIV>
<DIV class=gmail_extra><BR><BR>
<DIV class=gmail_quote>On Tue, Dec 18, 2012 at 10:12 PM, John Platt <SPAN
dir=ltr><<A href="mailto:jcplatt@dsl.pipex.com"
target=_blank>jcplatt@dsl.pipex.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote><U></U>
<DIV bgcolor="#ffffff">
<DIV class=im>
<DIV>Hi Arnaud,<BR><BR>Thanks for your suggestion but it does not change the
behaviour.<BR>Here is my code for changing the chart title colour
...<BR><BR> vtkTextProperty* txtProp =
myChart->GetTitleProperties();<BR>
txtProp->SetColor( r, g, b );<BR>
myChart->GetScene()->SetDirty( true );<BR><BR>Thanks for your
help.<BR><BR>John.<BR><BR>----- Original Message ----- </DIV></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"
dir=ltr>
<DIV class=im>
<DIV style="FONT: 10pt arial; BACKGROUND: #e4e4e4"><B>From:</B> <A
title=arnaud.barre@gmail.com href="mailto:arnaud.barre@gmail.com"
target=_blank>Arnaud BARRE</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=jcplatt@dsl.pipex.com
href="mailto:jcplatt@dsl.pipex.com" target=_blank>John Platt</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, December 18, 2012 6:19
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [vtkusers] vtkChart -
difficulty changing title colour and font size</DIV>
<DIV><BR></DIV></DIV>
<DIV>
<DIV class=h5>
<DIV dir=ltr>
<DIV>How do you modify these properties? You can use the method
vtkScene::SetDirty. For example chart->GetScene()->SetDirty(true);
This should update your modifications in the next
rendering.<BR><BR></DIV>Arnaud<BR></DIV>
<DIV class=gmail_extra><BR><BR>
<DIV class=gmail_quote>On Tue, Dec 18, 2012 at 7:07 PM, John Platt <SPAN
dir=ltr><<A href="mailto:jcplatt@dsl.pipex.com"
target=_blank>jcplatt@dsl.pipex.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE
style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex"
class=gmail_quote><U></U>
<DIV bgcolor="#ffffff">
<DIV><FONT face=Arial>Hi,</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>I'm having trouble changing the text colour and
font size of the chart & axes titles. They will change
when bold or italic is toggled and also after a lot of zooming in
the chart. Maybe there is some issue with caching. Has anybody else had
problems?</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>VTK 5.8.0, Qt 4.6.2, Win XP, VS
2008</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Thanks,</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT
face=Arial>John.</FONT></DIV></DIV><BR>_______________________________________________<BR>Powered
by <A href="http://www.kitware.com"
target=_blank>www.kitware.com</A><BR><BR>Visit other Kitware open-source
projects at <A href="http://www.kitware.com/opensource/opensource.html"
target=_blank>http://www.kitware.com/opensource/opensource.html</A><BR><BR>Please
keep messages on-topic and check the VTK FAQ at: <A
href="http://www.vtk.org/Wiki/VTK_FAQ"
target=_blank>http://www.vtk.org/Wiki/VTK_FAQ</A><BR><BR>Follow this
link to subscribe/unsubscribe:<BR><A
href="http://www.vtk.org/mailman/listinfo/vtkusers"
target=_blank>http://www.vtk.org/mailman/listinfo/vtkusers</A><BR><BR></BLOCKQUOTE></DIV><BR></DIV></DIV></DIV></BLOCKQUOTE></DIV><BR>_______________________________________________<BR>Powered
by <A href="http://www.kitware.com"
target=_blank>www.kitware.com</A><BR><BR>Visit other Kitware open-source
projects at <A href="http://www.kitware.com/opensource/opensource.html"
target=_blank>http://www.kitware.com/opensource/opensource.html</A><BR><BR>Please
keep messages on-topic and check the VTK FAQ at: <A
href="http://www.vtk.org/Wiki/VTK_FAQ"
target=_blank>http://www.vtk.org/Wiki/VTK_FAQ</A><BR><BR>Follow this link to
subscribe/unsubscribe:<BR><A
href="http://www.vtk.org/mailman/listinfo/vtkusers"
target=_blank>http://www.vtk.org/mailman/listinfo/vtkusers</A><BR><BR></BLOCKQUOTE></DIV><BR></DIV></BLOCKQUOTE></BODY></HTML>