[cairo] Contribution to line join and end caps
behdad at behdad.org
Mon Aug 4 21:57:47 PDT 2008
On Sun, 2008-08-03 at 10:55 -0700, Travis Griggs wrote:
> On Aug 1, 2008, at 1:55 PM, Martin Horák wrote:
> > Hello,
> > I am working on a project which uses the cairo library for primary
> > graphics rendering.
> > Because I quickly needed a special (not currently available in the
> > version 1.6.4) join and end
> > caps for lines, I implemented them myself. I added new two options
> > to type cairo_line_cap_t
> > (CAIRO_LINE_JOIN_TRIANGLE, CAIRO_LINE_JOIN_NONE) and one option to
> > cairo_line_join_t
> > (CAIRO_LINE_CAP_TRIANGLE)
> > The patch for cairo.h and cairo-path-stroke.c files is attached - I
> > hope it will be useful.
> I'm curious what they actually look like in the end? (did i just make
> a pun?) I think I get what CAP_TRIANGLE will look like, but what do
> JOIN_TRIANGLE and JOIN_NONE appear as? Is there a screenshot anywhere?
That's what I asked on the bugzilla entry  and this is what I got:
A triangle cap is shown in page 213 (fig. 22-11 (3)) and triangle join is in
page 214 (fig. 22-12 (3)) of the PCL reference available at
> Travis Griggs
> What's next, Intel Processors branded with "Apple Outside" stickers?
> cairo mailing list
> cairo at cairographics.org
"Those who would give up Essential Liberty to purchase a little
Temporary Safety, deserve neither Liberty nor Safety."
-- Benjamin Franklin, 1759
More information about the cairo