From 2ca95111529ad06c0577d61928b337c530a0e892 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Fri, 7 Feb 2020 11:38:00 -0500 Subject: [PATCH] Added fix for SVG output. This brings back the original behavior of generating scalable output. Some libcairo update had caused the output to use the wrong version of SVG by default, which generates an SVG-wrapped PNG data block, which is not scalable, and not what was intended with the "plot svg" command. --- graphics/grTCairo1.c | 5 ++--- tcltk/ext2sim.sh | 2 +- tcltk/ext2spice.sh | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/graphics/grTCairo1.c b/graphics/grTCairo1.c index 27299739..ed5c1a5b 100644 --- a/graphics/grTCairo1.c +++ b/graphics/grTCairo1.c @@ -370,9 +370,8 @@ GrTCairoPlotSVG (char *filename, MagWindow *mw) wind_context = tcairodata->context; tcairodata->surface = (cairo_surface_t *)cairo_svg_surface_create(filename, (double)screenw, (double)screenh); - cairo_svg_surface_restrict_to_version( - tcairodata->surface, CAIRO_SVG_VERSION_1_2); - + cairo_svg_surface_restrict_to_version(tcairodata->surface, + CAIRO_SVG_VERSION_1_2); tcairodata->context = cairo_create(tcairodata->surface); WindRedisplay(mw); WindUpdate(); diff --git a/tcltk/ext2sim.sh b/tcltk/ext2sim.sh index b1c98edd..8bd40c31 100644 --- a/tcltk/ext2sim.sh +++ b/tcltk/ext2sim.sh @@ -15,7 +15,7 @@ for i in $@; do esac done # -eval /home/tim/cad/lib/magic/tcl/magicdnull -dnull -noconsole -nowrapper $mgargs <