[cairo] problems with text rendering, 1.6.4

Tamas K Papp tpapp at Princeton.EDU
Wed Apr 23 08:10:16 PDT 2008


Hi Behdad and others,

I haven't had any responses to this, so I am wondering if you guys
need further information on the bug that I could perhaps provide.

The bug is really elusive, it only occurs when all of the following hold:
1) I am using the PS backend,
2) using colors with alpha channel (RGBA),
3) drawing both text and lines/fills

The floating point exception only comes when I destroy the context
(surface was destroyed when I created the context), not during the
drawing phase.

I wonder if there is any information I can extract from C structures
residing in memory that would aid the debugging of this problem (some
kind of state dump, etc).

Tamas

On Mon, Apr 21, 2008 at 11:12:04PM -0400, Behdad Esfahbod wrote:
> On Mon, 2008-04-21 at 21:03 -0400, Tamas K Papp wrote:
> > On Mon, Apr 21, 2008 at 08:47:46PM -0400, Behdad Esfahbod wrote:
> > > On Mon, 2008-04-21 at 20:32 -0400, Tamas K Papp wrote:
> > > > 
> > > > I can provide the example code that generated these (it is in Lisp,
> > > > but maps into C commands straightforwardly).
> > > 
> > > If you can, then just straight do.  We don't read minds!
> > 
> > Sorry, here it is.  It just uses the simple text functions.  In the
> > functions below, *context* is the default context.
> 
> I see.  The PDF renders fine in evince here.  Looks like a bug in the PS
> backend.  Adrian may be able to tell what's wrong by just looking at the
> PS output.  Or he may need to convert the sample to C and run it...
> Anyway, I'm sure he can figure out what the bug is.
> 
> Cheers,
> 
> behdad


More information about the cairo mailing list