[cairo] Drawing diagonal lines with antialiasing off

Behdad Esfahbod behdad at cs.toronto.edu
Wed Sep 28 12:32:32 PDT 2005

On Wed, 28 Sep 2005, Bill Spitzak wrote:

> Using linewidth of 0 for hairlines is well established by PostScript,
> OpenGL, PDF, and many other graphics API's.

I like having hairlines in cairo too.

> Jason Dorje Short wrote:
> > Xlib has a fixed definition of how a line is drawn, which is based on
> > integer coordinates (I've read this definition before but now I can't
> > find it).  Cairo has a different definition that uses floating-point
> > coordinates.


More information about the cairo mailing list