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

Home » Public Forums » archive » Re: IDL 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: IDL Fonts [message #51086 is a reply to message #51000] Thu, 02 November 2006 07:26 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Jared Espley writes:

>> Symbols in Postscript usually require UNICODE characters.
>> Here is an article that explains the situation in a lot
>> more detail:
>>
>> http://www.dfanning.com/graphics_tips/lesign.html
>
> Thanks for the quick and helpful response, David. Everything you said
> seemed to be spot on except for some quibbles I have with your tutorial
> you link above. I found that I could not get the specific unicode
> characters I wanted using the !z trick for any of the truetype fonts I
> had on my Windows XP system. Specifically, I was trying to get the
> perpendicular symbol (unicode 22A5) to show up -- instead I just got a
> square.

Well, I am using the same Windows XP and IDL 6.2 system you
are, and I find that unicode 22A5 is for a box! The perpendicular
line is listed as unicode 007C. This code worked for me.

device, set_font='Times New Roman', /tt_font
thisDevice = !D.Name
set_plot, 'ps'
device, xsize=5, ysize=1, /inches, filename='test.ps', /isolatin1
xyouts, 0.5, 0.5, /normal, charsize=2, align=0.5, $
'Straight bar (!Z(007C)) sign.'
device, /close
set_plot, thisDevice

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
Previous Topic: Re: Naming batch files and main-level programs
Next Topic: Re: printing hexadecimal

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

Current Time: Sat Oct 11 12:29:00 PDT 2025

Total time taken to generate the page: 0.56444 seconds