<div dir="ltr">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.<div><br></div><div>The old text, while lengthy, is the correct solution. The caller has to move the centers of the lines to pixel centers.</div><div><br></div><div>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.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Apr 24, 2016 at 3:10 PM, Lawrence D'Oliveiro <span dir="ltr"><<a href="mailto:ldo@geek-central.gen.nz" target="_blank">ldo@geek-central.gen.nz</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>--<br>
cairo mailing list<br>
<a href="mailto:cairo@cairographics.org">cairo@cairographics.org</a><br>
<a href="https://lists.cairographics.org/mailman/listinfo/cairo" rel="noreferrer" target="_blank">https://lists.cairographics.org/mailman/listinfo/cairo</a><br></blockquote></div><br></div>