From 16cf1a4d098cf2ab41e646ee3a6ad7d0d3d5d384 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 28 Jun 2019 22:17:46 +0100 Subject: [PATCH] Output text content as a description of the stroked path. Fixes: lp:1544918 * https://bugs.launchpad.net/kicad/+bug/1544918 --- common/plotters/SVG_plotter.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/plotters/SVG_plotter.cpp b/common/plotters/SVG_plotter.cpp index bdb567e1f9..761f3c6258 100644 --- a/common/plotters/SVG_plotter.cpp +++ b/common/plotters/SVG_plotter.cpp @@ -676,6 +676,10 @@ void SVG_PLOTTER::Text( const wxPoint& aPos, // TODO: see if the postscript native text code can be used in SVG plotter + fprintf( outputFile, + "%s\n", + TO_UTF8( XmlEsc( aText ) ) ); PLOTTER::Text( aPos, aColor, aText, aOrient, aSize, aH_justify, aV_justify, aWidth, aItalic, aBold, aMultilineAllowed ); + fputs( "", outputFile ); }