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

Home » Public Forums » archive » Sun Symbol in Postscript
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: Sun Symbol [message #41367 is a reply to message #8675] Tue, 26 October 2004 07:55 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Joel Vernet writes:

> This is just a shame that there is no option for a 'user font' with True
> Type that would be accessible with !20 like (it should do) in
> postscript. That forces me to replace the default Courier font by the
> Marvosym one to later be able to access it easily.

Just to expand a bit on what Joel means here. In PostScript
you can, in theory, add another PostScript font that you
can access by means of a !Number syntax. For example,
if I had a PostScript font named "Fanning", I could
go into the PostScript device and set it up so that !4
gave me the Fanning font:

Device, Set_Font='fanning', Font_Index=4
Plot, data, Title='This is normal and !4this is fanning!X'

Thus, I could mix font types in a single string, an
essential feature when you are writing papers for
journal publication. (All those pesky Greek symbols,
for example.)

Alas, the FONT_INDEX keyword does not apply to True-Type
fonts. So, the only way to add a True-Type font to IDL
that we have found, is to fake IDL out and substitute
one of our font files for one of theirs in their fonts/tt
directory. Actually, by modifying the ttfont.map file.

It is an ugly solution, to be sure, but we do get
a *great* looking sun symbol (and moon symbols, etc.). :-)

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http:/www.dfanning.com/
Phone: 970-221-0438, IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Installing PostScript Fonts in IDL
Next Topic: 2D scatter-density plotting

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

Current Time: Wed Oct 08 15:50:08 PDT 2025

Total time taken to generate the page: 0.00477 seconds