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

Home » Public Forums » archive » Re: !p.font=0
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: !p.font=0 [message #2621] Wed, 10 August 1994 15:47
korpela is currently offline  korpela
Messages: 59
Registered: September 1993
Member
In article <boroson.776376942@spot.colorado.edu>,
BOROSON BRAM S <boroson@spot.Colorado.EDU> wrote:
> Also, how does one use superscripts and special characters
> (Angstrom sign) when one uses !p.font=0?

A lot of the special characters are in the ISOlatin1 character set.
After you open your PS file do a DEVICE,/ISOlatin1

The characters I use most often are:
angstrom=string(197B)
plusminus=string(177B)

I haven't tried to do superscripts in PS yet. Let us know if you
find a good way.

Eric

--
Eric Korpela | New ERIC 2.0 offers increased
korpela@ssl.berkeley.edu | functionality with respect to
| workflow!
<a href=" http://cs.indiana.edu/finger/mofo.ssl.berkeley.edu/korpela/w">Click here for more info.</a>
Re: !p.font=0 [message #2625 is a reply to message #2621] Wed, 10 August 1994 01:54 Go to previous message
sjt is currently offline  sjt
Messages: 72
Registered: November 1993
Member
BOROSON BRAM S (boroson@spot.Colorado.EDU) wrote:
: I usually don't like the built-in "vectorized" text in IDL, so when
: I make plots in postscript, I use the command !p.font=0 to use intrinsic
: Postscript fonts. However, when it writes the numbers on the axes, it
: uses 2 * 10^8 instead of 2 x 10^8 (i.e., I'd prefer x as the multiplication
: symbol.) Also, how does one use superscripts and special characters
: (Angstrom sign) when one uses !p.font=0?

: Thanks for your help!

: Bram Boroson
: boroson@jila02.colorado.edu

The range of superscripting/subscripting etc. is somewhat more restricted
than for vector fonts, if I remember rightly the list of ! commands is
given in the PS device section of the reference manual.

Special characters: some (including I think Angstrom) are in the 8-bit
charset, but you'll need to check out the mappings there is a routine in
the userlib that plots all the characters out (I suggest using a
previewer to look at the results as it makes about a hundred pages of
output). Others are in the symbol font (notably the greek letters) so a
gamma would be '!9g!3'. Note that neither the font number nor the letter
mapping is the same as for the vector fonts.

--
James Tappin, School of Physics & Space Research
University of Birmingham
sjt@xun8.sr.bham.ac.uk
"If all else fails--read the instructions!"

O__
-- \/`
Re: !p.font=0 [message #2629 is a reply to message #2625] Tue, 09 August 1994 05:30 Go to previous message
stl is currently offline  stl
Messages: 70
Registered: February 1994
Member
In article <boroson.776376942@spot.Colorado.EDU> boroson@spot.Colorado.EDU (BOROSON BRAM S) writes:
> I usually don't like the built-in "vectorized" text in IDL, so when
> I make plots in postscript, I use the command !p.font=0 to use intrinsic
> Postscript fonts. However, when it writes the numbers on the axes, it
> uses 2 * 10^8 instead of 2 x 10^8 (i.e., I'd prefer x as the multiplication
> symbol.) Also, how does one use superscripts and special characters
> (Angstrom sign) when one uses !p.font=0?
>
Hi,

Well, not sure about the * symbol instead of the X. But to to print
special characters, look at an ascii table, find the ascii code for the
symbol you want, and then use the string() command to convert it to a
character.

for instance, say we were kinda out of it, and couldn't type "A", we
could make an "A" with the following command

string(65b)
(the b is because 65 is a byte value)

to use it in part of another string, do something like the
following,

big_string = string(65b) + " dog jumped over teh fence"

As for super scripting and subscripting, don't think it is automatically
possible. These fonts you would use are X fonts, basicly fixed size
postscript fonts, and so are not scalable. (they are not postscript
fonts!!!) I guess you could do it with different size fint and use
xyouts to position slightly up or down and pick slightly smaller font
sizes.

-good luck,

-stephen
--
Stephen C Strebel / SKI TO DIE
strebel@sma.ch / and
Swiss Meteorological Institute, Zuerich / LIVE TO TELL ABOUT IT
01 256 93 85 / (and pray for snow)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: strange problem: Alarm Clock????....
Next Topic: Any fix for IDL + MacX?

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

Current Time: Wed Oct 08 19:12:46 PDT 2025

Total time taken to generate the page: 0.00794 seconds