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

Home » Public Forums » archive » anstrom
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: anstrom [message #16523 is a reply to message #16430] Tue, 27 July 1999 00:00 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Sang-Heon Shim (sangshim@princeton.edu) writes:

> Thanks for the answer. For vector font, your idea works fine. However,
> if I try to use true type font, it doesn't.
>
> IDL>xyouts, 0,0, string(197B), font=0 ; <- to get true type font
> It gives wired character. Thanks.

You also have to set the ISOLATIN1 keyword. This works in both
vector and true-type fonts:

thisDevice = !D.Name
set_plot, 'PS'
DEVICE, FILE='w.ps', SET_FONT='Helvetica', /TT_FONT, /isolatin1
plot, [0], /nodata, xrange = [-50,50], yrange = [-50,50]
xyouts, 0,0, 'This is some nice test ' + string(197B), Font=0
device, /close
set_plot, thisDevice

Cheers,

David

--
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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: idlwave mode for emacs/xemacs?
Next Topic: Re: IDLgrAXIS annotation

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

Current Time: Sat Oct 11 12:23:15 PDT 2025

Total time taken to generate the page: 0.56056 seconds