[cairo] Difference in Cairo and Qt4 adjacent polygon rendering

Bill Spitzak spitzak at thefoundry.co.uk
Fri May 1 11:46:49 PDT 2009


Hezekiah M. Carty wrote:

> That said, when the stroke is added in the Cairo case, it creates a
> sort of saw-tooth pattern along the edge of some plots (see [1]
> below).  This does not happen in the Qt4 output (see [2] below).  In
> this case, the polygons which make up the plotted surface do not seem
> to be stroked in the Qt4 output, according to Inkscape.  They do,
> however, render cleanly (and without the "sawtooth" effect) in Evince.
>  Cairo output without the outline stroke does not render cleanly,
> again showing seams between the polygons.

You need to change the line joins and caps, perhaps to round (I'm not 
sure what the best one is).

-- 
Bill Spitzak, Senior Software Engineer
The Foundry, 618 Hampton Drive, Venice, CA, 90291, USA
Tel: +1 310 399-4555 * Fax: +1 310 450-4516 * Web: www.thefoundry.co.uk
The Foundry Visionmongers Ltd * Registered in England and Wales No: 4642027


More information about the cairo mailing list