Bug 16954 - Contribution to line join and end caps
Summary: Contribution to line join and end caps
Status: RESOLVED FIXED
Alias: None
Product: cairo
Classification: Unclassified
Component: general (show other bugs)
Version: 1.6.4
Hardware: All All
: low enhancement
Assignee: Carl Worth
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-01 15:11 UTC by Martin Horák
Modified: 2008-10-08 11:21 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Line join and end caps (1.71 KB, application/octet-stream)
2008-08-01 15:14 UTC, Martin Horák
Details

Description Martin Horák 2008-08-01 15:11:10 UTC
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_join_t (CAIRO_LINE_JOIN_TRIANGLE, CAIRO_LINE_JOIN_NONE) and one option to type cairo_line_cap_t(CAIRO_LINE_CAP_TRIANGLE) The patches for cairo.h and cairo-path-stroke.c files are attached. I hope they will be useful.

Regards,
Martin Horak
Comment 1 Martin Horák 2008-08-01 15:14:09 UTC
Created attachment 18070 [details]
Line join and end caps
Comment 2 Behdad Esfahbod 2008-08-02 13:50:07 UTC
Screenshots?  I can't guess what the new caps and join look like.
Comment 3 Martin Horák 2008-08-03 03:44:20 UTC
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
Comment 4 Chris Wilson 2008-10-08 11:21:59 UTC
Move to todo, thanks.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.