comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Setting and unsetting the vector font number
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Setting and unsetting the vector font number [message #34707 is a reply to message #34705] Fri, 04 April 2003 06:41 Go to previous message
Paul Van Delst[1] is currently offline  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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Font sizes/Screen vs. Postcript/Contour dropping lables
Next Topic: Apple X11 Beta 0.3

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 11:53:18 PDT 2025

Total time taken to generate the page: 0.87627 seconds