[cairo] Cairo and ISO C++
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
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...
Size: 12518 bytes
More information about the cairo