Re: Angstrom symbol? [message #7950] |
Thu, 30 January 1997 00:00  |
Andy Loughe
Messages: 174 Registered: November 1995
|
Senior Member |
|
|
David Fanning wrote:
> This is simple. Simply consult the table of octal values in the IDL
> documentation. (Octal values!? These people are trying to put money
> in my pocket!) You see that the octal value for the Angstrom symbol
> in Simplex Roman font (!3 for cognoscente) is 305. (Add the number
> in the column row to 10 times the row number, according to the
> documentation. Sigh...)
>
> So, here it is:
>
> XYOUTS, 0.5, 0.5, /Normal, CharSize=2.0, 'Symbol: ' + STRING("305B)
>
> What, you had to look up how to write an octal number! It's, "number,
> like that.
>
> If that is too confusing for you, you can resort to the perfectly
> simple:
>
> ang = '!6!sA!r!u!9 %!6!n'
>
> Now all you have to do is:
>
> XYOUTS, 0.5, 0.5, /Normal, CharSize=2.0, 'Symbol: ' + ang
>
> Hope this clears up any confusion. :-)
One question, doesn't the first solution work for hardware fonts
and the second for software (vector-drawn) fonts?
--
Andrew F. Loughe |
afl@cdc.noaa.gov
University of Colorado, CIRES Box 449 |
http://cdc.noaa.gov/~afl
Boulder, CO 80309-0449 | phn:(303)492-0707
fax:(303)497-7013
------------------------------------------------------------ ---------------
"I do not feel obliged to believe that the same God who has endowed us
with
sense, reason, and intellect has intended us to forego their use."
-Galileo
|
|
|