[cairo] Interpretation of zero-length segments

Krzysztof Kosiński tweenk.pl at gmail.com
Wed Aug 4 15:54:41 PDT 2010


Hello

Cairo interpretation of zero-length segments appears to differ from
the SVG interpretation.

In SVG, a zero-length segment between two normal segments causes the
stroke to appear like there was a very short linear segment whose
direction is determined by tangents at the end of the non-degenerate
segments. In Cairo, zero-length segments are a no-op and the path
looks like the zero-length segments don't exist at all. This causes
problems when rendering zero-width or zero-height rectangles, as shown
in the attachments in the next message (I'm not sure whether it will
go through).

Is there any way to consistently get the SVG behavior?

Regards, Krzysztof


More information about the cairo mailing list