|
|
|
Re: Angstrom symbol in IDL5.6 [message #34854 is a reply to message #34834] |
Wed, 23 April 2003 07:31   |
R.Bauer
Messages: 1424 Registered: November 1998
|
Senior Member |
|
|
Kristian Kjaer wrote:
> On http://www.dfanning.com/misc_tips/angstrom.html Dave Fanning shows us
> how to draw an 'Angstrom symbol' (which is of course just the last
> letter of the alphabet used around here).
>
> Something like:
> angstrom = '!6!sA!r!u!9 %!n!x'
> XYOUTS, 0.1, 0.5, /Normal, CharSize=5.0, 'Symbol: ' + angstrom
>
> But in IDL5.6 this doesn't work so well as in earlier versions: The
> 'ring' is displaced.
>
> Anything to suggest this is not a genuine bug?
>
> - Kristian
The o is a bit higher as normal in this example but it seems only !A does a
centric move up.
erase & XYOUTS, 0.1, 0.5, /Normal, $
CharSize=6.0,'!sA!r!A'+string(BYTE(176))+'!N'
Reimar
--
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
|
|
|
|
Re: Angstrom symbol in IDL5.6 [message #34860 is a reply to message #34857] |
Wed, 23 April 2003 06:28   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Kristian Kjaer (Kristian.Kjaer@Risoe.DK) writes:
> On http://www.dfanning.com/misc_tips/angstrom.html Dave Fanning shows us
> how to draw an 'Angstrom symbol' (which is of course just the last
> letter of the alphabet used around here).
>
> Something like:
> angstrom = '!6!sA!r!u!9 %!n!x'
> XYOUTS, 0.1, 0.5, /Normal, CharSize=5.0, 'Symbol: ' + angstrom
>
> But in IDL5.6 this doesn't work so well as in earlier versions: The
> 'ring' is displaced.
>
> Anything to suggest this is not a genuine bug?
Wow. Sure enough. This sure looks like a bug to me.
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
Re: Angstrom symbol in IDL5.6 [message #34898 is a reply to message #34834] |
Mon, 28 April 2003 01:41  |
Kristian Kjaer
Messages: 58 Registered: June 1998
|
Member |
|
|
CM wrote:
> I don't have 5.6, but you could try this, at least, it works in 5.5:
> angstrom = STRING(197B)
Yes, well, this works (with the default font):
window & XYOUTS, 0.1, 0.5, /Normal, CharSize=6.0,'!3'+STRING(197B)+'!x'
But with a fancy font it does not work:
window & XYOUTS, 0.1, 0.5, /Normal, CharSize=6.0,'!6'+STRING(197B)+'!x'
- Kristian
|
|
|