← All bug reports

FS#11File: SVG Export

Type
Feature Request
Status
Closed
Resolution
Implemented
Category
QCAD (main)
Severity
Low
Priority
Low
Reported version
Development
Target version
Post 3.0
Operating system
All
Reported
2011-04-15 by anonymous
Closed
2013-06-20 by andrew

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

Comments (5)

deleted user 2011-04-18

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)
andrew 2011-04-18

Everything as path to render exactly like in QCAD.

deleted user 2011-04-20

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>
andrew 2011-04-20

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.

hungerburg 2011-08-27

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.

Closure comment

Mostly implemented. Open new feature request for desired features.