[cairo] Cairo and SVG

Behdad Esfahbod behdad at behdad.org
Fri Dec 21 14:52:41 PST 2007


On Fri, 2007-12-21 at 17:47 -0500, Jake B wrote:
> Can you tell me, are there any open source applications that make use
> of the SVG backend for Cairo? I'm trying to envision how it would be
> used, and it would be nice if I could see an example.
> Please let me know. Thanks. 

You are definitely using it correctly.  Just hitting a bug.  All you
need to do is to send one such SVG (missing text) to this list.

behdad


> Jake
> 
> On Dec 21, 2007 4:33 PM, Emmanuel Pacaud
> <emmanuel.pacaud at lapp.in2p3.fr> wrote:
>         Hi,
>         
>         Le vendredi 21 décembre 2007 à 12:37 -0800, Alan W. Irwin a
>         écrit :
>         > Note, it appears that SVG backend (I hope I am using the
>         correct terminology
>         > here) is not nearly as well supported as the PS, PDF, PNG,
>         and X backends. 
>         
>         
>         The SVG backend is officialy supported and passes the test
>         suite. Please
>         report any bug you may have.
>         
>         > Our cairo devices are implemented almost entirely with
>         common code with only 
>         > minimal variations for each backend (e.g., calls to such
>         functions as
>         > cairo_svg_surface_create_for_stream in the svgcairo case).
>          However, our
>         > svgcairo device does not work nearly as well as our pscairo,
>         pdfcairo, 
>         > pngcairo, and xcairo devices. For svgcairo, all the plot
>         lines and shapes
>         > are there in the resulting SVG file, but the text
>         annotations are missing!
>         >
>         > Therefore, is PLplot wasting its time using 
>         > cairo_svg_surface_create_for_stream to implement an SVG
>         device as a simple
>         > add-on device to our other cairo-related devices, do we have
>         to do more than
>         > a simple call to cairo_svg_surface_create_for_stream to get
>         text to work, or 
>         > can we eventually expect text rendering to work
>         automatically for this
>         > device like it does for the rest?
>         
>         
>         Text should work fine with the SVG backend, without any
>         specific backend
>         call (it doesn't use the <text> element, but outputs the text
>         as paths). 
>         
>                Emmanuel.
>         
>         --
>         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 
>         
>         _______________________________________________
>         cairo mailing list
>         cairo at cairographics.org
>         http://lists.cairographics.org/mailman/listinfo/cairo
> 
-- 
behdad
http://behdad.org/

...very few phenomena can pull someone out of Deep Hack Mode, with two
noted exceptions: being struck by lightning, or worse, your *computer*
being struck by lightning.  -- Matt Welsh



More information about the cairo mailing list