[cairo] dashes not rectangular
Andrea Canciani
ranma42 at gmail.com
Wed Mar 2 09:05:24 PST 2011
On Wed, Mar 2, 2011 at 4:46 PM, Vojtech Fried <vfried at opentext.com> wrote:
> 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.
I'm not sure if I understood your problem. There are some known
problems/bugs with Cairo path-stroking code, but your does not
look like one of them.
Could you provide a small code snippet to reproduce it or images showing it?
Andrea
More information about the cairo
mailing list