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

Home » Public Forums » archive » Re: calligraphic font
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: calligraphic font [message #84509] Tue, 21 May 2013 11:29 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> I suppose the real problem is that there is no way I know of to obtain
> the current true-type font programmatically, and I want to use true-type
> fonts in PS_Start, so I define a default one. Humm. :-(

OK, here is the real problem. I see I've dealt with this before.

The real problem is that to get the PostScript device to use a true-type
font, you have to specify the font from *within* the PostScript device.
In other words, this command:

Device, Set_Font='Times', /TT_FONT

Has to be issued after the SET_PLOT, "PS" command. It does no good to
issue it at the IDL command line if you want to make a PostScript file.

Since PS_Start is issued at the IDL "command line" normally and sets up
the PostScript file for you, that is why you have to use the TT_FONT
keyword to specify the font:

PS_Start, TT_Font='Times'

This allows it to issue the proper command after the PostScript device
has been entered.

Then, of course, the PostScript device is "sticky" and it stays
configured until you change it to something else. If I could figure out
which true-type font was in effect at the command line (I don't know of
any way to do this), I could keep the PostScript output in sync.

One way to handle this would be to write a cgSet_TTFont command that
would set the true-type font for both the display and for PostScript
output. That way, I could keep things in sync. But, how many people
would use it?

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ENVI_SVM_DOIT
Next Topic: IDL 8.2 legend problem

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

Current Time: Wed Oct 08 18:33:38 PDT 2025

Total time taken to generate the page: 0.00437 seconds