Bug 14556 - Stroking a line with a pattern as source does not work with SVG output
Summary: Stroking a line with a pattern as source does not work with SVG output
Status: RESOLVED FIXED
Alias: None
Product: cairo
Classification: Unclassified
Component: svg backend (show other bugs)
Version: 1.5.9
Hardware: All All
: medium normal
Assignee: Emmanuel Pacaud
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-18 16:18 UTC by Tom Hughes
Modified: 2008-03-20 13:39 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Source for test case (773 bytes, text/plain)
2008-02-18 16:18 UTC, Tom Hughes
Details
Image for pattern (25.32 KB, image/png)
2008-02-18 16:19 UTC, Tom Hughes
Details
Example of failing output (795 bytes, image/svg+xml)
2008-02-20 13:40 UTC, Tom Hughes
Details

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.