Re: Changing font on iPlot legend [message #70032] |
Mon, 08 March 2010 15:35 |
Cliff
Messages: 11 Registered: April 2006
|
Junior Member |
|
|
On 8 Mar, 23:24, pp <pp.pente...@gmail.com> wrote:
> On Mar 8, 8:01 pm, Cliff <c.chees...@physics.org> wrote:
>
>> On 8 Mar, 22:22, pp <pp.pente...@gmail.com> wrote:
>
>>> Have you used
>
>>> otool->commitactions
>
>>> after you set the properties?
>
>> Yes I have - sorry I didn't mention it.
>
> It works for me, but I noticed that capitalization matters: The font
> name must have only the first letter capitalized. Otherwise, it seems
> that the name is not recognized, and it is reverted to the default
> Helvetica:
>
> IDL> o->setproperty,font_name='SYMBOL'
> IDL> o->getproperty,font_name=fn & print,fn
> Helvetica
> IDL> o->setproperty,font_name='Symbol'
> IDL> o->getproperty,font_name=fn & print,fn
> Symbol
> IDL> o->setproperty,font_name='symbol'
> IDL> o->getproperty,font_name=fn & print,fn
> Helvetica
>
> You can also try putting a !9 inside your string, to change the font
> to Symbol. It also works for me.
Both methods work - Incidently it also worked using
void = oTool->DoSetProperty(ids[i], 'FONT_NAME', 'Symbol')
so that I didn't have to get the object itself.
Thank you very much.
Cliff
|
|
|
Re: Changing font on iPlot legend [message #70033 is a reply to message #70032] |
Mon, 08 March 2010 15:24  |
penteado
Messages: 866 Registered: February 2018
|
Senior Member Administrator |
|
|
On Mar 8, 8:01 pm, Cliff <c.chees...@physics.org> wrote:
> On 8 Mar, 22:22, pp <pp.pente...@gmail.com> wrote:
>
>> Have you used
>
>> otool->commitactions
>
>> after you set the properties?
>
> Yes I have - sorry I didn't mention it.
It works for me, but I noticed that capitalization matters: The font
name must have only the first letter capitalized. Otherwise, it seems
that the name is not recognized, and it is reverted to the default
Helvetica:
IDL> o->setproperty,font_name='SYMBOL'
IDL> o->getproperty,font_name=fn & print,fn
Helvetica
IDL> o->setproperty,font_name='Symbol'
IDL> o->getproperty,font_name=fn & print,fn
Symbol
IDL> o->setproperty,font_name='symbol'
IDL> o->getproperty,font_name=fn & print,fn
Helvetica
You can also try putting a !9 inside your string, to change the font
to Symbol. It also works for me.
|
|
|
Re: Changing font on iPlot legend [message #70034 is a reply to message #70033] |
Mon, 08 March 2010 15:01  |
Cliff
Messages: 11 Registered: April 2006
|
Junior Member |
|
|
On 8 Mar, 22:22, pp <pp.pente...@gmail.com> wrote:
> Have you used
>
> otool->commitactions
>
> after you set the properties?
Yes I have - sorry I didn't mention it.
Regards,
cliff
|
|
|
|