[cairo] Cairo and ISO C++

Emmanuel PACAUD emmanuel.pacaud at lapp.in2p3.fr
Wed Jan 15 14:05:01 PST 2014

Le mercredi 15 janvier 2014 à 11:40 -0800, Bill Spitzak a écrit :
> Yes it does sound like the "crisp edges" specified there, however they 
> are describing an excessively complex and non-working solution.
> All I want is for strokes that have an odd width to be offset by .5, .5, 
> the purpose being to be able to reuse the path for both a fill and 
> stroke and get a sharp edge. I used the zero linewidth because every 
> other graphics library I have ever seen used zero for this, and because 
> most uses would like the same line no matter what the CTM is (it is 
> often used to draw guidelines), and because I did not want to add 
> another call to the Cairo API.
> You cannot adjust all the strokes to the nearest pixel because this will 
> either cause identical objects to vary in size, or identical gaps 
> between objects to vary in size. Both look much uglier than 
> antialiasing. 

Well, that is more or less what we do in goffice, the graphing library
of gnumeric, and it's not that ugly. All layout measurements are done in
points, and we get crisp rendering whatever the zoom level is.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.png
Type: image/png
Size: 12518 bytes
Desc: test.png
URL: <http://lists.cairographics.org/archives/cairo/attachments/20140115/ea577b1a/attachment-0001.png>

More information about the cairo mailing list