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

Home » Public Forums » archive » Re: How to use hardware fonts in PS and X?
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: How to use hardware fonts in PS and X? [message #10873] Thu, 12 February 1998 00:00
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Dan Mueth (d-mueth@uchicago.edu) writes:

> I am looking for a clean way to use fonts in IDL. I would like to
> produce PostScript plots for incorporation into LaTeX for publication.
> They should include the PostScript(hardware) fonts, Greek letters, and
> nice-looking equations if possible.
>
> I would like to use a single procedure to alternately save the plot to a
> PostScript file or to plot it in an IDL plotting window (in X), using a
> command-line keyword to specify the destination. I would like the two
> plots to look identical, even though the device changes between X and PS.
> Thus, the X device should use hardware fonts, placing the characters in
> the same location and size that they appear in the PS file. (Y axis
> title characters need to be rotated.)
>
> Is there any way of doing this nicely?

The bad news is that there is no way to do this currently
in IDL. The good news is that I think it will be available
shortly. Perhaps as soon as IDL 5.1.

I notice that there is an undocumented feature in IDL 5.0.3
in which if you set !P.Font=1 you access the same set of
built-in PostScript fonts used by the object graphics system,
but in normal graphics. Unfortunately, there are still
problems with the positioning of axes annotations, etc., which
I am sure is why this is an undocumented feature, but I am
encouraged by what I see. Axis titles appear to rotate correctly,
even if they aren't yet positioned where they are suppose
to be.

!P.Font=1
Plot, Findgen(11), YTitle='Y Title', XTitle='X Title', $
Position=[0.2, 0.2, 0.9, 0.9]

The characters are not rendered all that well on the display
(how come display PostScript never caught on?), but they render
great on the output and at least what you see on the display is
quite a bit more like what you see on the hardcopy than it used
to be, especially with respect to the size and weight of the
annotations.

If you are interested in how you can get reasonably good
WYSIWYG output of your current graphics displays, see the
series of articles on Perfect PostScript Output on my web
page. An entire chapter of my book is devoted to the same
subject.

Cheers,

David

-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Previous Topic: Re: Need help with vector processing.
Next Topic: How to use hardware fonts in PS and X?

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

Current Time: Sat Oct 11 03:39:27 PDT 2025

Total time taken to generate the page: 0.63939 seconds