On Thu, Aug 02, 2007 at 06:48:11PM +0100, Andrew Ross wrote:
> On Thu, Aug 02, 2007 at 09:49:19AM -0700, Alan Irwin wrote:
> > Thanks very much for drawing our attention to this bug which I have just
> > confirmed for one of my private examples that uses -dev png. I hope we will
> > be able to fix it soon (in the svn version), but no promises.
> The standard example 9 demostrates this. Look at the contour labels at
> the top. This problem appears to apply to other drivers using
> the plfreetype support code too. I've tested with gd and wxwidget drivers.
> There is no clipping support in plfreetype.c as far as I can tell.
> At a quick look I think that this code should be in FT_PlotChar().
> Unless there are other volunteers who know this code better than me,
> I'll try to take a look at it in the next week or so.
I've just committed a fix to svn which should correctly clip text to the
viewport with drivers using plfreetype.c (gd and wxwidgets). Page 1 of
example 9 is now correct. Also checked with different orientations - if
anyone is looking to implement this with other driver don't forget you
need to apply the device filters (difilt) to the clipping coordinates!