comp.lang.idl-pvwave archive - RDF feed
type: channel
description: Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado
items: Displaying degree symbol with Postscript fonts
items: Re: Displaying degree symbol with Postscript fonts

Displaying degree symbol with Postscript fonts
type: item
description: 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. Ken Bowman
creator: Kenneth P. Bowman
date: 2008-07-17T18:33:20-00:00

Re: Displaying degree symbol with Postscript fonts
type: item
description: Dear Ken, I do not use the isolatin1 keyword because I want to have the per mil sign, which is gone from the postscript fonts with isolatin1. So I always use number 176 of the symbol font, which is the degree sign regardless of isolatin1. Try: set_plot, 'PS' stdfont='!4' ; almost whatever you want xyouts, 0.1, 0.7, font=0, $ stdfont+'Degree Celsius: !9'+string(byte(176))+stdfont+'C' xyouts, 0.1, 0.4, font=0, $ stdfont+'Per mil: '+string(byte(189)) device, /close Cheers Matthias 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. > > Ken Bowman
creator: Matthias Cuntz
date: 2008-07-18T21:19:11-00:00