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-8oAiWRkpXtrcpNso69CqB=-_rx9j6mJPaG8Th7hLiKnWRKg@mail.gmail.com> |
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 < [email protected]> wrote: > > -- > cairo mailing list > [email protected] > https://lists.cairographics.org/mailman/listinfo/cairo > -- cairo mailing list [email protected] https://lists.cairographics.org/mailman/listinfo/cairo