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

Home » Public Forums » archive » DejaVuSans Font and the Sun Symbol
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
DejaVuSans Font and the Sun Symbol [message #82559] Fri, 21 December 2012 15:15
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Folks,

One of the things I like about IDL 8.2 (see, I'm already
practicing New Year resolutions!) is the new DejaVuSans
font that was included in the IDL distribution. I *really*
like the way it looks in PostScript output and I have
been using it in place of Helvetica for awhile now. I'm
thinking seriously of making this the default PostScript
font for all Coyote Graphics output.

To make this easier to use, I have added a new DejuVuSans
keyword to PS_Start to allow me to quickly choose this
True-Type font for PostScript output. This is ONLY available
in IDL 8.2 and higher.

One of the things I think astronomers are going to like
about the DejaVuSans font is its ability to render a
Sun symbol. (And you thought Santa Claus didn't exist!)
Small modifications to cgSymbol have made it possible
to automatically return the proper Unicode values for
the Sun symbol, if you are set up to use this font.
For Coyote Graphics routines, it is as simple as this:

PS_Start, 'sunsymboltest.ps', /DejaVuSans
cgPlot, cgDemoData(1), Title = 'Sun Symbol($\sun$)'
PS_End, /PNG

You can see what the output looks like at the bottom of
this article:

http://www.idlcoyote.com/misc_tips/sun_symbol.html

Currently this feature is unavailable from the resizeable
cgWindow, but I expect it will be soon enough.

You will need to update your Coyote Library to take
advantage of this functionality.

http://www.idlcoyote.com/programs/zip_files/coyoteprograms.z ip

Happy Holidays!

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Previous Topic: Re: resizing system variable
Next Topic: Re: Empirical orthogonal function in IDL

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

Current Time: Wed Oct 08 18:35:19 PDT 2025

Total time taken to generate the page: 0.00444 seconds