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

Home » Public Forums » archive » Re: Truetype fonts an clipping
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: Truetype fonts an clipping [message #71624] Fri, 09 July 2010 05:16
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
jkeller writes:

> We got a problem arising from our choice of truetype fonts instead of
> the ugly Hershey fonts. If you use the standard Hershey fonts the
> following command works just fine:
> plot,[0,1],[0,1],position=[0.3,0.3,0.7,0.7]
> xyouts,indgen(10)*0.2,indgen(10)*0.2,STRTRIM(indgen(10),
> 1),noclip=0,clip=[0.,0.,1.,1.]
>
> But if you switch to truetype fonts using
> !P.font=1
> then IDL ignores the clipping when you issue the commands above. We
> also tested this with normal coordinates and on X- and Postscript-
> device with the same effect.
>
> Anyone got an idea or - even better - a solution for this problem,

I've run into this problem so often with map projections
and MAP_GRID that I have had to write my own MAP_GRID
routine to deal with it. Basically, what I had to do
is write my own "clipping" routine that checks to see
if the point I am trying to draw is inside the boundary
given by the !X.CRANGE and !Y.CRANGE vectors. If it is,
I draw the point, if it is not, I don't.

It's a bit of a pain to write wrappers for all of IDL's
graphics routines. :-(

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
Previous Topic: Truetype fonts an clipping
Next Topic: IDL and OPENDAP

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

Current Time: Fri Oct 10 00:04:00 PDT 2025

Total time taken to generate the page: 0.32469 seconds