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

Bill Spitzak <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <CAL-8oAh64kfnNJiMyr2cgF_1dDPDk8k3C9cVNERw3j_hOJ1EpA@mail.gmail.com>
I recommend you try angles other than 45 degrees, and try putting the 1.1
thick lines at a non-integer vertical position.

It seems like even with antialiasing off and 45 degrees you are forced to
adjust the line ends to be pixel centers so this is not buying you
anything. I think the antialiased version with the ends at pixel centers
(diag_int_aa.png) is the best result.


On Mon, Apr 25, 2016 at 10:57 PM, Lawrence D'Oliveiro <
[email protected]> wrote:

> On Mon, 25 Apr 2016 09:09:34 -0700, Bill Spitzak wrote:
>
> > Also diagonal lines and curves look horrible.
>
> Which, I think, illustrates the difference between guessing and actually
> trying things out.
>
> Enclosed are four examples illustrating what happens to 45° diagonal
> lines. As you can see, the results are the opposite from what happens
> to exactly vertical/horizontal lines, namely the lines at
> integer-plus-half coordinates are thicker and blurrier, while the ones
> at integer coordinates are the thinnest and sharpest.
>
> In other words, my recommendation to turn antialiasing off works under
> a wider range of conditions than the existing FAQ answer.
>
> --
> cairo mailing list
> [email protected]
> https://lists.cairographics.org/mailman/listinfo/cairo
>

-- 
cairo mailing list
[email protected]
https://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.