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 #16527 is a reply to message #16430] Tue, 27 July 1999 00:00 Go to previous message
Jeff Kolthammer is currently offline  Jeff Kolthammer
Messages: 2
Registered: July 1999
Junior Member
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
[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: Sun Oct 12 09:17:48 PDT 2025

Total time taken to generate the page: 1.04418 seconds