[cairo] Cairo and SVG

Emmanuel Pacaud emmanuel.pacaud at lapp.in2p3.fr
Fri Dec 21 13:33:13 PST 2007


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



More information about the cairo mailing list