QCAD

QCAD - 2D CAD System.

Click here for a documentation of the DokuWiki formatting syntax that can be used in reports

Please search for existing tasks (also closed ones) before opening a new task.

Please make sure that you are using the latest Version of QCAD before posting a bug (menu Help - Check for Updates)

Tasklist

FS#11 - File: SVG Export

Attached to Project: QCAD
Opened by Martin (martin) - Friday, 15 April 2011, 09:21 GMT+1
Last edited by Andrew (andrew) - Friday, 21 June 2013, 00:10 GMT+1
Task Type Feature Request
Category Main
Status Closed
Assigned To Andrew (andrew)
Martin (martin)
Operating System All
Severity Low
Priority Normal
Reported Version Development
Due in Version Post 3.0
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Open

  • ExporterPG (preserve geometry)
    • Texts are exported as text tags, with ‘similar’ font
  • text
    • other formatting
      • exporter for presentation (based on paths): implemented
      • ExporterPG: TODO

Postponed

  • Global Preferences:
    • Number of generated segments for ellipses [postponed]
      • Problem: exported SVG files can be very large under certain circumstances
  • ExporterPG
    • Export layer information if possible / maybe group by layer [postponed]

Done

  • hatches
    • solid fill
    • pattern
  • text
    • line breaks
      • ExporterPG: Since line spacing is rendered differently in SVG, the used text space might be different, too.
    • position broken for some texts
This task depends upon

Closed by  Andrew (andrew)
Friday, 21 June 2013, 00:10 GMT+1
Reason for closing:  Implemented
Additional comments about closing:  Mostly implemented. Open new feature request for desired features.
Comment by Martin (martin) - Monday, 18 April 2011, 16:54 GMT+1

How should dimensions be exported ("normal" SVG exporter)?

  • As 1 path element that contains text, lines and arrows (everything as path element, text cannot be edited)

Or

  • As 1 text element and 1 path element (lines and arrows)
Comment by Andrew (andrew) - Monday, 18 April 2011, 22:49 GMT+1

Everything as path to render exactly like in QCAD.

Comment by Martin (martin) - Wednesday, 20 April 2011, 16:47 GMT+1

text line breaks: "SVG has no inherent support for line breaks or text wrapping, so multiline text layout is possible only by using multiple <text> elements or <tspan> elements embedded within <text> elements." reference

Inkscape uses the flowRoot/flowRegion/flowPara mechanism to represent multi-line texts:

<flowRoot>
  <flowRegion>
    <rect width="54.667633" height="28.062719" x="38.44957" y="5.6952629"/>
  </flowRegion>
  <flowPara>line1</flowPara>
  <flowPara>line2</flowPara>
</flowRoot>
Comment by Andrew (andrew) - Wednesday, 20 April 2011, 16:53 GMT+1

flowRoot/flowRegion/flowPara looks good for now.
It seems to be SVG 1.2 (working draft), but let's use this until we have data from customers for whom this does not work.

Comment by Peter (hungerburg) - Saturday, 27 August 2011, 15:06 GMT+1

This is the cumulated patch of todays work done on the SVG (PG) exporters. Licence grant: You may use it in whichever way you please, but not to ridicule me.

Thank you for the great application.

Loading...