Re: Displaying degree symbol with Postscript fonts [message #61471] |
Fri, 18 July 2008 10:11  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Kenneth P. Bowman writes:
> That prints a superscript lowercase letter O, correct? My eagle-eye is offended
> by its non-circularity. ;-)
Must be a Mac thing. ;-)
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.")
|
|
|
|
Re: Displaying degree symbol with Postscript fonts [message #61475 is a reply to message #61472] |
Fri, 18 July 2008 09:52   |
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.")
|
|
|
|
|
|
|
Re: Displaying degree symbol with Postscript fonts [message #61556 is a reply to message #61475] |
Fri, 18 July 2008 13:36  |
Kenneth P. Bowman
Messages: 585 Registered: May 2000
|
Senior Member |
|
|
In article <MPG.22ea784099ceccda98a408@news.giganews.com>,
David Fanning <news@dfanning.com> wrote:
> 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
Ha, told ya so.
I made the same change to my PS_ON program (which is a
heavily modified version of Liam's similar program).
Ken
|
|
|
Re: Displaying degree symbol with Postscript fonts [message #61565 is a reply to message #61472] |
Fri, 18 July 2008 11:18  |
bjelley
Messages: 11 Registered: November 2006
|
Junior Member |
|
|
On Jul 18, 10:12 am, "Kenneth P. Bowman" <k-bow...@null.edu> wrote:
> In article <g5q7sp$s2...@news.nems.noaa.gov>,
> Paul van Delst <Paul.vanDe...@noaa.gov> wrote:
>
>
>
>
>
>> Kenneth P. Bowman wrote:
>>> 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.
>
>> What's wrong with !Uo!N ?
>
>> If you can see a meaningful difference, then your printer has more dpi than it should! :o)
>
>> cheers,
>
>> paulv
>
> That prints a superscript lowercase letter O, correct? My eagle-eye is offended
> by its non-circularity. ;-)
>
> Ken- Hide quoted text -
>
> - Show quoted text -
What is wrong with Matthew Craig's TeXtoIDL version (/circ keyword)?
It is rather aged (1996?), but still works fine for greek letters,
inifinity character, and such.
Gumley still probably has it posted on his book companion site.
Cheers,
-Ben
|
|
|
Re: Displaying degree symbol with Postscript fonts [message #61570 is a reply to message #61472] |
Fri, 18 July 2008 10:19  |
Paul Van Delst[1]
Messages: 1157 Registered: April 2002
|
Senior Member |
|
|
Kenneth P. Bowman wrote:
> In article <g5q7sp$s2d$1@news.nems.noaa.gov>,
> Paul van Delst <Paul.vanDelst@noaa.gov> wrote:
>
>> Kenneth P. Bowman wrote:
>>> 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.
>> What's wrong with !Uo!N ?
>>
>> If you can see a meaningful difference, then your printer has more dpi than it should! :o)
>>
>> cheers,
>>
>> paulv
>
> That prints a superscript lowercase letter O, correct? My eagle-eye is offended
> by its non-circularity. ;-)
I figured it might. (I use latex to insert labels as required for publications)
viva le \circ! :o)
cheers,
paulv
|
|
|