[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: anstrom
- Subject: Re: anstrom
- From: Jeff Kolthammer <jeffk(at)nm.picker.com>
- Date: Tue, 27 Jul 1999 16:55:10 -0400
- Newsgroups: comp.lang.idl-pvwave
- Organization: Picker International, Nuclear Medicine Division
- References: <379E0E24.FEA25848@princeton.edu>
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:15867
Sang-Heon Shim wrote:
> Simple question.
> How can I put angstrom character (Å) in the postscript file using true
> type font?
> Thanks.
>
Conveniently, the angstrom character is in the ASCII character set. You can
generate the character with the "string" function and a byte argument:
IDL> print, STRING(197B)
You could use XYOUTS or something similar when writing to your postscript device;
the TrueType font, size, et cetera can be controlled using keywords to DEVICE.
For example, the following code draws some axes and drops a large TrueType
angstrom character in the middle.
IDL> set_plot, 'PS'
IDL> DEVICE, FILE='w.ps', SET_FONT='Times', /TT_FONT
IDL> plot, [0], /nodata, xrange = [-50,50], yrange = [-50,50]
IDL> xyouts, 0,0, string(197B)
IDL> device, /close
IDL> set_plot, 'X'
Hope this helps,
Jeff
--------------------------
Jeff Kolthammer
Nuclear Medicine Division
Picker International
Email: jeffk@nm.picker.com