[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Embedded Font formatting and positioning commands in Object Graphics

Yesterday I wrote:

> Then I searched the Symbol font type for the
> correct unicode representation for the omega (?)
> symbol used in the above xyouts command. I found
> the symbol to be the value 77 in hexadecimal notation:
> '77'xb. (I used the Unicode Character Map application
> on my Windows NT machine.)

It has been pointed out to me that the embedded character
!Z has been added to the IDL language recently to facilitate
expression of Unicode character glyphs (16-bit hexadecimal

My expression:

  xyouts, 0.5, 0.25, /normal, '[1/!9' + String('77'xb) + '!X!Ip!N]', $
      size=3, font=1

Would be more sensibly written as this:

  xyouts, 0.5, 0.25, /normal, '[1/!9!Z(0077)!X!Ip!N]', $
      size=3, font=1



David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155