From: Andrew Ross <andrewross@us...> - 2012-10-10 22:15:48
On Mon, Oct 01, 2012 at 10:05:41AM +0100, Andrew Ross wrote:
> On Mon, Oct 01, 2012 at 09:51:38AM +0100, Andrew Ross wrote:
> > Hi Phil,
> > I don't have AGG currently so haven't tested that (I'll try later).
> > The basic backend (backend=0) is fine (see attached screenshot). The
> > problems are with the wxGraphicsContext backend (backend=1).
> Sorry backend=2 not backend=1.
> > I'm using your v2 patch with the current svn.
I've got to the bottom of the problem. Turns out that at least on my
version of wxwidgets the function GetTextExtent doesn't update the
width if the string length is zero (as is the face for a FCI code).
Setting the width to zero before calling GetTextExtent cures the
problem for me and should have no adverse impact. Now I've got to the
bottom of this I'll go ahead and commit your patch.
Thanks, and sorry its taken so long to debug.