Cairo postscript patterns wrong

Bug #217212 reported by Tavmjong Bah
2
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.

Tags: exporting ps
Revision history for this message
Tavmjong Bah (tavmjong-free) wrote :

Fixed when 208217 fixed.

Changed in inkscape:
status: New → Fix Committed
jazzynico (jazzynico)
Changed in inkscape:
importance: Undecided → Medium
milestone: none → 0.47
tags: added: exporting ps
ScislaC (scislac)
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.