[cairo] svn output clipped transparent

Emmanuel Pacaud emmanuel.pacaud at lapp.in2p3.fr
Thu Jun 7 07:55:29 PDT 2007


The SVG file is rendered correctly here, either with eog or inkscape.

It looks like the librsvg bug fixed with this commit:

    2007-01-25  Kouhei Sutou <kou at cozmixng.org>
    
            * rsvg-cairo-clip.c: Fix clipping regression introduced by the
            2006-10-13 patch (bug 388545)

	Emmanuel.

Le jeudi 07 juin 2007 à 14:37 +0200, Tamas K Papp a écrit :
> Hi,
> 
> The right and lower sides of the svg files I output with Cairo seem to
> be clipped.  The SVG and the screenshot of how mirage and eog (Linux
> utilities) render it is attached.  The SVG appears to be OK, but I
> don't know much about it -- is this a bug in Cairo or the SVG reader
> library?
> 
> The figures were created by the following Common Lisp code (if you
> don't know CL, all these operations map directly into Cairo calls).
> libcairo2 is from the Debian package, version 1.4.6-1.1.
> 
> (defparameter *surface* (create-svg-surface "example.svg" 200 100))
> (setf *context* (create-context *surface*))
> (destroy *surface*)
> ;; clear the whole canvas with blue
> (rectangle 0 0 200 100)
> (set-source-rgb 0.2 0.2 1)
> (fill-path)
> ;; draw a white diagonal line
> (move-to 200 0)
> (line-to 0 100)
> (set-source-rgb 1 1 1)
> (set-line-width 5)
> (stroke)
> ;; destroy context, this also destroys the surface and closes the file
> (destroy *context*)
> 
> Thanks,
> 
> Tamas
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://cairographics.org/cgi-bin/mailman/listinfo/cairo
-- 
Emmanuel PACAUD
Groupe Virgo
LAPP - Laboratoire d'Annecy-le-Vieux de physique des particules
9, chemin de Bellevue - BP 110
74941 Annecy-le-Vieux CEDEX
France
Tél: (+33)4 50 09 17 89 - Fax: (+33)4 50 27 94 95



More information about the cairo mailing list