[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cairo
Subject:    Re: [cairo] Antialiasing and round,
From:       Carl Worth <cworth () cworth ! org>
Date:       2004-10-19 17:32:28
Message-ID: E1CJxqX-0006eV-00 () chootrain ! carl ! worth
[Download RAW message or body]

On Tue, 19 Oct 2004 12:57:22 -0400, Jon Smirl wrote:
> Won't apps that fix this by adding 0.5 pixel look wrong when drawn at
> a larger scale?

They won't look "wrong", as the 0.5 unit adjust is perfectly justifiable
geometrically. For example, shifting a stroke inward one half the stroke
width will make the outer edge of the stroke align precisely with the
boundary of the fill from the original path.

But, at a different scale, the result will not necessarily have the
same device-pixel alignment that is the reason for the adjustment here.

So, the adjustment necessary for aligning to device pixels is
transformation-dependent, shape-dependent, and perhaps
scene-dependent. It's the dependency on the shape and the scene that
have pushed me toward making applications deal with this. But getting it
right for all transformations is not easy. So I'm now wanting to put
some support into cairo to deal with this, but also provide a means for
the user to provide some shape-specific hints.

-Carl


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic