[cairo] SVG & PS/EPS surfaces

Emmanuel Pacaud emmanuel.pacaud at lapp.in2p3.fr
Sun Aug 2 11:25:46 PDT 2015


Why are you using an intermediate surface ? The following code should 
do the same:

fs = cairo_ps_surface_create("test.eps",100.0,100.0);
cairo_ps_surface_set_eps(fs,1);
cr = cairo_create(fs);
   (drawing commands on cr)
cairo_destroy(cr);
cairo_surface_finish(fs);

Anyway, if you have to use intermediate surface, use 
cairo_surface_create_similar.

	Cheers,

		Emmanuel.



More information about the cairo mailing list