[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: anstrom
- Subject: Re: anstrom
- From: davidf(at)dfanning.com (David Fanning)
- Date: Tue, 27 Jul 1999 17:20:56 -0600
- Newsgroups: comp.lang.idl-pvwave
- Organization: Fanning Software Consulting
- References: <379E0E24.FEA25848@princeton.edu> <379E1CAE.D5A56864@nm.picker.com> <379E2F91.4A32AD2C@princeton.edu>
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:15872
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