|
From: Andrew R. <and...@us...> - 2005-01-25 11:13:38
|
On Mon, Jan 24, 2005 at 06:51:29PM +0000, Andrew Ross wrote: > On Sat, Jan 22, 2005 at 09:31:40PM -0800, Alan Irwin wrote: > > On 2005-01-22 15:58-0800 Alan W. Irwin wrote: > > > > + Examples 9 displays contour labels outside viewport. This is probably a > > core non-Hershey font problem since it also occurs for postscript. > > The contour labelling is done by calling plptex. According to the > documentation this clips to the viewport. It does for the Hershey fonts > because the lower level plotting routines do the clipping. For either > the postscript or freetype fonts there is no clipping however. > Presumably this bug has been there for a long time with the old > postscript "-drvopt text" option but no-one has noticed. > > For postscript this can probably be relatively easily fixed using the > postscript clip. In fact we could probably alter plsclp to set the clip > path and that would solve the problem neatly for this and any other > future clipping issues? I have now fixed this for the postscript driver using clipping. In fact it turned out to be easier just to add the clipping around the text in the postscript file. This now works. While testing I noticed that example 21 uses the 5th plpoin symbol to plot the data. This is missing from my postscript fonts at least so it is possibly not a good choice for our examples. If I can get my head around the transformations I will try and look at the bounding box issue as well. > For freetype fonts - I don't know. I guess this clipping has to be done > at the font level because at the plptex level we don't know what size > and length the strings are? |