[cairo] Contribution to line join and end caps

Behdad Esfahbod 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 [1] 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 
http://h20000.www2.hp.com/bc/docs/support/SupportManual/bpl13211/bpl13211.pdf
"""

[1] http://bugs.freedesktop.org/show_bug.cgi?id=16954

behdad

> --
> Travis Griggs
> Objologist
> What's next, Intel Processors branded with "Apple Outside" stickers?
> 
> 
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://lists.cairographics.org/mailman/listinfo/cairo
-- 
behdad
http://behdad.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 mailing list