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

Home » Public Forums » archive » weird font issue: string("305B) does not work any more?
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
weird font issue: string("305B) does not work any more? [message #61159] Sun, 06 July 2008 01:31
biophys is currently offline  biophys
Messages: 68
Registered: July 2004
Member
Hi, Folks

It's been a long time since last time I used something like
string("305B) to get these special characters. However, this time it
doesn't work for me on a windows machine with direct graphics. If I
use

IDL>!p.font=-1 & XYOUTS,.1, .5, '!3Here is an Angstrom symbol: ' +
STRING("305B), /NORM, CHARSIZE=3
or
IDL>!p.font=1 & XYOUTS,.1, .5, '!3Here is an Angstrom symbol: ' +
STRING("305B), /NORM, CHARSIZE=3

the angstrom does not show up. If I use

IDL>!p.font=0 & XYOUTS,.1, .5, '!3Here is an Angstrom symbol: ' +
STRING("305B), /NORM, CHARSIZE=3

a symbol of cent is showing up, not the angstrom. If I simply do

IDL>print,string("305B)

I can see the angstrom. Currently my work around for this is to use
unicode. Something like

!p.font=-1 & XYOUTS,.1, .5, '!3Here is an Angstrom symbol: !Z(00c5)', /
NORM, CHARSIZE=3

actually works! No such issue on my linux box. So can someone explain
to me what is going on here? Am I missing something simple? Thank you
for any inputs here.

bp
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: newbie seeks to debug "% Syntax error."
Next Topic: MONTHLY EARNING $1000 TO$10000

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

Current Time: Wed Oct 08 19:19:56 PDT 2025

Total time taken to generate the page: 0.00585 seconds