You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

94 lines
2.5 KiB

Index: src/output/cairo.c
--- src/output/cairo.c.orig 2023-02-16 23:20:13.000000000 +0100
+++ src/output/cairo.c 2024-01-01 13:07:50.805384000 +0100
@@ -31,7 +31,9 @@
#include <cairo/cairo-pdf.h>
#include <cairo/cairo-ps.h>
+#if 0
#include <cairo/cairo-svg.h>
+#endif
#include <cairo/cairo.h>
#include <inttypes.h>
@@ -314,12 +316,14 @@
return xr_create (fh, device_type, o, XR_PS);
}
+#if 0
static struct output_driver *
xr_svg_create (struct file_handle *fh, enum settings_output_devices device_type,
struct driver_options *o)
{
return xr_create (fh, device_type, o, XR_SVG);
}
+#endif
static struct output_driver *
xr_png_create (struct file_handle *fh, enum settings_output_devices device_type,
@@ -440,6 +444,7 @@
cairo_surface_show_page (xr->dest_surface);
break;
+#if 0
case XR_SVG:
{
cairo_surface_t *svg = cairo_svg_surface_create (
@@ -449,6 +454,7 @@
cairo_surface_destroy (svg);
}
break;
+#endif
case XR_PNG:
{
@@ -479,6 +485,7 @@
cairo_surface_show_page (xr->dest_surface);
break;
+#if 0
case XR_SVG:
{
cairo_surface_t *svg = cairo_svg_surface_create (
@@ -488,6 +495,7 @@
cairo_surface_destroy (svg);
}
break;
+#endif
case XR_PNG:
xr_report_error (cairo_surface_write_to_png (xr->drawing_surface,
@@ -617,8 +625,10 @@
{ "pdf", "pspp.pdf", xr_pdf_create };
struct output_driver_factory ps_driver_factory =
{ "ps", "pspp.ps", xr_ps_create };
+#if 0
struct output_driver_factory svg_driver_factory =
{ "svg", "pspp.svg", xr_svg_create };
+#endif
struct output_driver_factory png_driver_factory =
{ "png", "pspp.png", xr_png_create };
Index: src/output/driver.c
--- src/output/driver.c.orig 2024-01-01 13:06:08.591671000 +0100
+++ src/output/driver.c 2024-01-01 13:08:18.229186000 +0100
@@ -508,7 +508,9 @@
extern const struct output_driver_factory png_driver_factory;
extern const struct output_driver_factory ps_driver_factory;
extern const struct output_driver_factory spv_driver_factory;
+#if 0
extern const struct output_driver_factory svg_driver_factory;
+#endif
extern const struct output_driver_factory tex_driver_factory;
extern const struct output_driver_factory txt_driver_factory;
@@ -522,7 +524,9 @@
&spv_driver_factory,
&pdf_driver_factory,
&ps_driver_factory,
+#if 0
&svg_driver_factory,
+#endif
&png_driver_factory,
&tex_driver_factory,
NULL