Page 1 of 1

Dimension label invisible in SVG export

Posted: Thu Aug 08, 2019 7:41 am
by slcasner
I have reduced the DXF file from ... 322#p24286 to provide a simplified example of one problem. In the attached dims.dxf file there are two non-exploded dimensions. If the drawing is exported as SVG with Preserve Geometry not set, as in dims-arial.svg, then the labels are not visible when the SVG is viewed in Firefox. Looking at the SVG file, I see that the text is rendered as a very long <path> of Cubic B├ęzier Curves. That <path> contains no style parameter to set the stroke or fill color.

If the SVG is exported with Preserve Geometry set, as in dims-preserve.svg, then the text is output as a <text> object instead. In this case the text is rendered in black rather than the blue color specified for the layer containing the dimensions.

I would prefer to have text output as <text> objects because it reduces the complexity of the SVG file. Perhaps that could be controlled by the Application Preferences - Graphics View - Render Text as Text option? Or a similar option as part of the SVG export configuration.

This is with QCAD-Pro 3.23.0 on MacOS 10.14.4.