Re: Setting and unsetting the vector font number [message #34707 is a reply to message #34705] |
Fri, 04 April 2003 06:41  |
Paul Van Delst[1]
Messages: 1157 Registered: April 2002
|
Senior Member |
|
|
Kristian Kjaer wrote:
>
> IDL5.6 help says:
> <quote>
> Once the vector font system is selected, use an embedded formatting
> command to select a vector font (or fonts) for each string. (See
> Embedded Formatting Commands for details on embedded formatting
> commands.) The font selected "sticks" from string to string; that is, if
> you change fonts in one string, future strings will use the new font
> until you change it again or exit IDL.
>
> For example, to use the Duplex Roman vector font for the title of a
> plot, you would use a command that looks like this:
>
> PLOT, mydata, TITLE="!5Title of my plot"
> </quote>
>
> So to have all of the lettering in font !5 (including the numbers near
> the tickmarks, etc.) one has to include "!5" in the first string
> processed by IDL in the plot command, and to reset to the default font
> one must end the _last_ string by "!3".
>
> Somewhere I read which this first and last string are, but now I can't
> find it.
> Does anyone remember?
>
> Any other ideas for setting and unsetting the vector font number?
What about the !X command? E.g.
PLOT, mydata, TITLE="!5Title of my plot!X"
?
Doesn't this set the font to #5 and then switch it back to whatever the font was before
the command? I always use !X when I change fonts in a test string, e.g. like when you want
to insert greek letters and such (although that's an easy error to catch since it's all
Greek to me after that :o)
It's an extra "!X" in every string you want to change, but that's a lot easier than trying
to remember to switch it back at one particular spot. (At least I think so)
paulv
--
Paul van Delst
CIMSS @ NOAA/NCEP/EMC
Ph: (301)763-8000 x7748
Fax:(301)763-8545
|
|
|