[cairo] PATCH cairo-www: Simpler explanation for how to get sharp, single-pixel-wide lines

Lawrence D'Oliveiro ldo at geek-central.gen.nz
Thu May 18 12:04:57 UTC 2017

On Thu, 18 May 2017 11:24:05 +0200, Guillermo Rodriguez wrote:

> https://lists.cairographics.org/archives/cairo/2004-October/002039.html

Worth (so to speak) also pointing out this bit:

    As I talk about in the comment in the sample code, it may still be
    beneficial to add some automatic snapping to cairo. It would simply
    make it easier to achieve effects such as this---and in particular,
    to achieve these effects regardless of what scaling the current
    transformation might be performing.

Was such an “automatic snapping” API ever added to Cairo? One that is
independent of the current transformation?

Trick question: in fact, it already existed even as he spoke.

It’s precisely the effect that *aliasing* achieves.

More information about the cairo mailing list