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

Home » Public Forums » archive » Re: noclip=0 with postscript fonts
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: noclip=0 with postscript fonts [message #23827] Fri, 23 February 2001 15:49
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Med Bennett (mbennett@indra.com) writes:

> Same as when I use font=0. What's the differnce anyway? I never understood this
> keyword completely.

FONT=1 selects true-type fonts. These are polygon filled fonts,
that act very much like vectors fonts. That is, they can be rotated
in 3D space, etc., since each polygon is a 3D list of points.

IDL comes with four true-type font families: times, helvetica,
courier, and symbol. You can use others if you have them.
For example, to use the Times font I would do this:

Device, Set_Font='Times*16', /TT_Font
Plot, Findgen(11), Font=1, Title='This title is in TIMES typeface.'

True-type fonts don't look so great in direct graphics on
the display (although they always look fabulous in hardcopy).
If you want neat JPEG text, you sometimes have to do the
trick of drawing into a window that is 4-5 times larger
than you really want, with THICK=5, SIZE=5, etc, and then
take a snapshot of the larger window and rebin it to the
size you really want. This make text look great, usually,
although it can be a fair amount of work.

Hardware fonts may or may not be true-type fonts, depending
upon your printer, what kinds of fonts you have installed on
your printer, etc. There are many variations, although I think
*most* fonts on *most* printers these days are probably true-type
fonts. They are slower to render, but they scale nicely.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: noclip=0 with postscript fonts [message #23828 is a reply to message #23827] Fri, 23 February 2001 15:30 Go to previous message
Med Bennett is currently offline  Med Bennett
Messages: 109
Registered: April 1997
Senior Member
David Fanning wrote:

> Med Bennett (mbennett@indra.com) writes:
>
>> Nope - I just changed my program to use the vector drawn fonts, and setting
>> noclip=0 in the call to XYOUTS behaves as expected - labels that would fall
>> outside the plotting window are not plotted. It's only when I include font=0
>> in the call that the noclip=0 keyword has no effect, i.e. labels outside the
>> plotting window are plotted anyway.
>
> Really!? What happens if you use true-type fonts? (Font=1)
>
> Cheers,
>
> David
>
> P.S. Let's just say my write arm is too tired to
> type the commands. :-(

Same as when I use font=0. What's the differnce anyway? I never understood this
keyword completely.
Re: noclip=0 with postscript fonts [message #23829 is a reply to message #23828] Fri, 23 February 2001 15:19 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Med Bennett (mbennett@indra.com) writes:

> Nope - I just changed my program to use the vector drawn fonts, and setting
> noclip=0 in the call to XYOUTS behaves as expected - labels that would fall
> outside the plotting window are not plotted. It's only when I include font=0
> in the call that the noclip=0 keyword has no effect, i.e. labels outside the
> plotting window are plotted anyway.

Really!? What happens if you use true-type fonts? (Font=1)

Cheers,

David

P.S. Let's just say my write arm is too tired to
type the commands. :-(

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: noclip=0 with postscript fonts [message #23830 is a reply to message #23829] Fri, 23 February 2001 15:13 Go to previous message
Med Bennett is currently offline  Med Bennett
Messages: 109
Registered: April 1997
Senior Member
David Fanning wrote:

> Med Bennett (mbennett@indra.com) writes:
>
>> I am making some plots with data points labelled with value and station
>> name. Some of them fall outside of the plotting window, and I would
>> like to supress these. They still plot, even with noclip=0 in the call
>> to XYOUTS. After studying the online help page, I notice that it states
>> that "this keyword controls the clipping of vectors and vector-drawn
>> text." In other words, it doesn't work with software fonts (i.e.,
>> font=0). Is there any way to achieve clipping with software fonts,
>> other than looping through the coordinates and checking them against the
>> plot limits (Yuck!) ?
>
> I don't think it really matters *what* kind of fonts
> you use. I don't think there is any other way
> than to check the coordinates before you plot them. :-(
>

Nope - I just changed my program to use the vector drawn fonts, and setting
noclip=0 in the call to XYOUTS behaves as expected - labels that would fall
outside the plotting window are not plotted. It's only when I include font=0
in the call that the noclip=0 keyword has no effect, i.e. labels outside the
plotting window are plotted anyway.
Re: noclip=0 with postscript fonts [message #23833 is a reply to message #23830] Fri, 23 February 2001 13:47 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Med Bennett (mbennett@indra.com) writes:

> I am making some plots with data points labelled with value and station
> name. Some of them fall outside of the plotting window, and I would
> like to supress these. They still plot, even with noclip=0 in the call
> to XYOUTS. After studying the online help page, I notice that it states
> that "this keyword controls the clipping of vectors and vector-drawn
> text." In other words, it doesn't work with software fonts (i.e.,
> font=0). Is there any way to achieve clipping with software fonts,
> other than looping through the coordinates and checking them against the
> plot limits (Yuck!) ?

I don't think it really matters *what* kind of fonts
you use. I don't think there is any other way
than to check the coordinates before you plot them. :-(

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: noclip=0 with postscript fonts
Next Topic: !EXCEPT

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

Current Time: Thu Oct 09 23:50:41 PDT 2025

Total time taken to generate the page: 2.31962 seconds