Bug 14556

Summary: Stroking a line with a pattern as source does not work with SVG output
Product: cairo Reporter: Tom Hughes <tom>
Component: svg backendAssignee: Emmanuel Pacaud <emmanuel.pacaud>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium    
Version: 1.5.9   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Source for test case
Image for pattern
Example of failing output

Description Tom Hughes 2008-02-18 16:18:23 UTC
Created attachment 14400 [details]
Source for test case

Setting an image pattern as the source and then stroking the line does not seem to work with the SVG backend.

The attached test case takes a PNG file (also attached) and draws a horizontal line with it. The SVG file that is produced looks like it is trying to do something, but neither inkscape, rsvg nor firefox seems to render anything.

Compiling the test case with -DPDF to produce PDF output gives a PDF file that does seem to draw the line as expected.
Comment 1 Tom Hughes 2008-02-18 16:19:13 UTC
Created attachment 14401 [details]
Image for pattern
Comment 2 Emmanuel Pacaud 2008-02-20 11:52:08 UTC
Could you please attach the resulting SVG file ?

Thanks,

    Emmanuel.
Comment 3 Tom Hughes 2008-02-20 13:40:48 UTC
Created attachment 14461 [details]
Example of failing output

Here's an example of the SVG produced by the test case, as requested.
Comment 4 Emmanuel Pacaud 2008-03-20 13:39:48 UTC
Fixed in cairo HEAD.

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.