[cairo] dashes not rectangular

Vojtech Fried vfried at opentext.com
Wed Mar 2 07:46:34 PST 2011


Hi,

When drawing a rectangle with a dashed line, the (individual) dash at the corner is not rectangular.
It looks like (bottom right corner of the rectangle, horizontal line, two pixels wide):
xxx
xxxx
instead of either
xxx
xxx
or
xxxx
xxxx

Is this normal? It makes sense because the dash is aligned with 45degree line - the axis of the right angle. But on the other hand it does not look pretty - it is not rectangular. Especially when the line is thicker i.e. when the 'x' from the example above represents more than one pixel but an area of 4x4 pixels or more.

Vojtech
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20110302/e5aa5852/attachment.htm>


More information about the cairo mailing list