Nothing gets drawn on screen except for bounding boxes after importing a DXF file

Bug #1510909 reported by Yegor on 2015-10-28
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Medium
Alvin Penner

Bug Description

If I import this particular DXF, the drawing area becomes blank. This includes objects that are visible prior to importing the file. Changing the display mode, zooming in/out doesn't help. Saving to SVG and re-opening doesn't help either. Bounding boxes, guides and other non-payload stuff are all visible and can be acted upon, but the image itself is blank. It does render on export though.

Steps to take:
1. Start new Inkscape instance.
2. Draw something, a couple shapes will do.
3. Drag the DXF file into the drawing area to import it.
4. Observe the bug.
5. Export the drawing to a PNG file - the image will be there.

The DXF file was generated by Ascon Kompas 3D V13.

Windows 10 64-bit, Inkscape 0.91 r13725

Yegor (entrase) wrote :
description: updated
su_v (suv-lp) on 2015-10-28
tags: added: importing
removed: blank
su_v (suv-lp) wrote :

DXF import with Inkscape 0.91 creates text objects with font size 0px:
  style="font-size: 0.0px;
which triggers a known regression in Inkscape 0.91:
* Bug #1294784 “text with font of size zero pixels renders drawing invisible (rev >= 12488)”
  https://bugs.launchpad.net/inkscape/+bug/1294784

su_v (suv-lp) wrote :

Font size '0px' reproduced on DXF import of the test case with Inkscape 0.91 r13725 and 0.91+devel r14430 on OS X 10.7.5.

The text renders visible in other DXF viewers/editors, so possibly DXF import could be improved to extract and assign the correct font size. Using "UTF 8" as character encoding for import works ok for the content of the text objects and layer names, but does not help wrt font size.

Changed in inkscape:
importance: Undecided → Medium
status: New → Confirmed
Alvin Penner (apenner) wrote :

attached is a proposed modification of the file dxf_input.py. It will ignore the font size if it is zero, and will use a default value instead. This will make the file file.dxf visible.

Alvin Penner (apenner) wrote :

committed to rev 14437

Changed in inkscape:
status: Confirmed → Fix Committed
assignee: nobody → Alvin Penner (apenner)
su_v (suv-lp) on 2015-10-31
Changed in inkscape:
milestone: none → 0.92
tags: added: backport-proposed
su_v (suv-lp) wrote :

Fix backported to 0.91.x in rev 13847.

Changed in inkscape:
milestone: 0.92 → 0.91.1
tags: removed: backport-proposed
jazzynico (jazzynico) on 2017-01-28
Changed in inkscape:
milestone: 0.91.1 → 0.92
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers