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

Bill Spitzak spitzak at gmail.com
Mon Apr 25 16:09:34 UTC 2016


No, turning off antialiasing is not the solution. This can be made obvious
by setting the line width to slightly larger than 1, you will then get
alternating 1 and 2 pixel thick lines. Also diagonal lines and curves look
horrible.

The old text, while lengthy, is the correct solution. The caller has to
move the centers of the lines to pixel centers.

It might be nice if Cairo provided some automatic version of this (ie some
kind of analysis of the path and generation of automatic "hinting" similar
to fonts) but it does not, and adding that might be much too complicated
and not really satisfy everybody.


On Sun, Apr 24, 2016 at 3:10 PM, Lawrence D'Oliveiro <
ldo at geek-central.gen.nz> wrote:

>
> --
> cairo mailing list
> cairo at cairographics.org
> https://lists.cairographics.org/mailman/listinfo/cairo
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo/attachments/20160425/6b57ce2c/attachment.html>


More information about the cairo mailing list