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.
SVG import doesn't render text
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
- Krischu
- Premier Member
- Posts: 180
- Joined: Thu Jul 04, 2019 8:11 am
SVG import doesn't render text
--
Christoph
Christoph
-
- Premier Member
- Posts: 4872
- Joined: Wed Sep 27, 2017 4:17 pm
Re: SVG import doesn't render text
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.
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
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.

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
- andrew
- Site Admin
- Posts: 8766
- Joined: Fri Mar 30, 2007 6:07 am
Re: SVG import doesn't render text
Krischu: SVG import is limited to geometry (lines, arcs, ellipses, splines, etc.) at this point.
-
- Premier Member
- Posts: 4872
- Joined: Wed Sep 27, 2017 4:17 pm
Re: SVG import doesn't render text
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...'
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
-
- Premier Member
- Posts: 4872
- Joined: Wed Sep 27, 2017 4:17 pm
Re: SVG import doesn't render text
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
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