SVG import doesn't render text

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 your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
User avatar
Krischu
Premier Member
Posts: 180
Joined: Thu Jul 04, 2019 8:11 am

SVG import doesn't render text

Post by Krischu » Thu May 15, 2025 10:53 am

Upgraded to 3.32 since 3.29 showed the same problem. I'm trying to import an SVG-file containing text among other entities.
The text doesn't show up.

This is the file in question.
--
Christoph

CVH
Premier Member
Posts: 4872
Joined: Wed Sep 27, 2017 4:17 pm

Re: SVG import doesn't render text

Post by CVH » Thu May 15, 2025 12:40 pm

Hi,

Weird indeed ...
Importing is as bitmap: 864 by 859 pixels, orientation is 360 in my case or simple zero.
-> No so called Dimension lines and no text.
Untrue ... They are Black and that doesn't show on a Black background.
Try to insert the SVG as bitmap over a solid hatch of for example 1000 by 1000 units.

Opening the SVG is as vector art.
-> Not in the correct size: White keys are 41.119425 wide instead of 23.6 units
-> With Dimension lines but no text.

:arrow: I have seen the same issue with creating QCAD icons that include text with Inkscape in SVG.
The SVG text is not shown in the icons or it are black rectangles attempting something else.
I had to convert the text to filled paths in Inkscape so that a tool icon display the text as expected.

Direct solution for fairly exact vector art but without the text.
- Open the SVG as a new file, In the file explorer opt for SVG files (*.svg) instead of CAD files.
- Select All (TA)
- Scale (SZ), Focus point = origin, Delete Original, Factor x = 23.6/41.119425 (equations are allowed), Proportional, Not by mouse cursor.

Regards,
CVH

User avatar
andrew
Site Admin
Posts: 8766
Joined: Fri Mar 30, 2007 6:07 am

Re: SVG import doesn't render text

Post by andrew » Thu May 15, 2025 1:28 pm

Krischu: SVG import is limited to geometry (lines, arcs, ellipses, splines, etc.) at this point.

CVH
Premier Member
Posts: 4872
Joined: Wed Sep 27, 2017 4:17 pm

Re: SVG import doesn't render text

Post by CVH » Thu May 15, 2025 1:42 pm

andrew wrote:
Thu May 15, 2025 1:28 pm
Krischu: SVG import is limited to geometry (lines, arcs, ellipses, splines, etc.) at this point.
Imported the SVG over a yellow Hatch.
It is imported as bitmap and the SVG text is readable.
Imported with: File .. 'Import' (Ctrl+Shift+I) or File .. 'Import SVG...'

KrischuSVG-Imported.png
KrischuSVG-Imported.png (8.93 KiB) Viewed 13409 times

To get the geometry only I need to Open (Ctrl+O) the SVG file.
But then the size is incorrect according the displayed values in the bitmap.
That is probably so in the source and not to blame on QCAD.

Regards,
CVH

CVH
Premier Member
Posts: 4872
Joined: Wed Sep 27, 2017 4:17 pm

Re: SVG import doesn't render text

Post by CVH » Thu May 15, 2025 2:39 pm

Because you updated from 3.29 I tested it on the latest release ...

For release 3.32.2.0
- File .. Open (Ctrl+O) creates a new document with geometry only inserted at (0,0).
- File .. 'Import' (Ctrl+Shift+I) is a bitmap with text and dimension lines in Black.
- File .. 'Import SVG...' is geometry only, asking for a resolution and inserted at (0,0) in another scale as on open.

Accidentally had 3.32.2.0 running in debugger mode and it threw an exception in the second case.
At different places for different trials ... Bottom line: Debugger mode is not considered as stable.

Regards,
CVH

Post Reply

Return to “QCAD Troubleshooting and Problems”