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

Home » Public Forums » archive » Re: Displaying degree symbol with Postscript fonts
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: Displaying degree symbol with Postscript fonts [message #61475 is a reply to message #61472] Fri, 18 July 2008 09:52 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Kenneth P. Bowman writes:

> This is one of those things that everyone but me probably already
> knows.
>
> To display the degree symbol in most Postscript fonts
> (glyph B0 in hex), you have to set the /ISOLATIN1 keyword via the
> DEVICE command. This is not the most obscure feature that I
> have ever seen in IDL (perhaps we should start a top 10 list),
> but it is right up there.

This is a good point, since Isolatin encoding is turned on
by default with HERSHEY fonts, but turned off by default with
hardware fonts of the sort you typically use in PostScript.
Thus, it makes it a bit harder to write device-independent
programs, because this is something you have to keep in mind.

To this end, I've made a change in my PSConfig suite of programs
to set the ISOLATIN1 keyword to 1 by default, rather than to
the normal 0. (The ISOLATIN1 keyword is accessed in PSCONFIG
normally, by setting the FONTINFO keyword when you call the
program. Most people, of course, have never used the FONTINFO
keyword (including me).) So, setting the keyword by default will
make this functionality mindlessly available to me and everyone
else. :-)

You can download the PSCONFIG set of programs here:

http://www.dfanning.com/programs/psconfig.zip

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: QHULL/VORONOI question
Next Topic: Displaying degree symbol with Postscript fonts

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

Current Time: Sat Oct 11 16:22:09 PDT 2025

Total time taken to generate the page: 1.04349 seconds