Dimension label invisible in SVG export

If you are having problems with QCAD, post here. Please report bugs through our Bug Tracker instead.

Always attach your original DXF or DWG file and mentions your QCAD version and the platform you are on.

Moderator: andrew

Forum rules
Always indicate Operating system, QCAD version
Attach Drawing files, Screenshots
Post Reply
Junior Member
Posts: 20
Joined: Tue May 07, 2019 10:23 pm

Dimension label invisible in SVG export

Post by slcasner » Thu Aug 08, 2019 7:41 am

I have reduced the DXF file from https://qcad.org/rsforum/viewtopic.php? ... 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.
(2.11 KiB) Downloaded 207 times
(3.44 KiB) Downloaded 189 times
(105.81 KiB) Downloaded 215 times

Post Reply

Return to “QCAD Troubleshooting and Problems”