Cairo postscript patterns wrong
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Fix Released
|
Medium
|
Unassigned |
Bug Description
The export of patterns via Cairo to PostScript is wrong.
Exporting the Strips1_1 pattern with default scaling gives:
/CairoPattern {
q
0 0 20 10 rectclip
0 g
0 10.051 m 0.102 10.051 l 0.102 9.852 l 0 9.852 l 0 10.051 l h
0 10.051 m f
Q
} bind def
I am not an expert on PS patterns, but this looks like to me that a 10x20 clipping box is being filled by a tiny black box at the upper left corner which is then used as the pattern. (m = moveto, l = lineto, h = closepath, f = fill)
Also the CTM matrix is set to [ 80 0 0 80 0 -680 ] corresponding to a scaling of 80 when, I think, the scaling should be 0.8 (to take into account the Inkscape default to PostScript pixel size: 72/90).
In any case, when I replace the Cairo pattern by
/CairoPattern {
q
0 0 20 10 rectclip
0 g
0 0 m 0 10 l 10 10 l 10 0 l 0 0 l h f
Q
} bind def
and the CTM matrix by [ 0.8 0 0 0.8 0 0 ] I get the correct PostScript output.
This may also be effecting the PDF via Cairo output.
Tested with Inkscape 0.46 and with Cairo 1.6.4.
Changed in inkscape: | |
importance: | Undecided → Medium |
milestone: | none → 0.47 |
tags: | added: exporting ps |
Changed in inkscape: | |
status: | Fix Committed → Fix Released |
Fixed when 208217 fixed.