pcbnew option to export text as editable text when plotting DXF

Bug #1423515 reported by Jan Cablik
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Wishlist
Eldar Khayrullin

Bug Description

In old stable versions, when pcbnew design was exported to DXF, text items were stored as text. It was very easy to open the file in qcad, edit some texts and create board drawing. Development versions several months back convert text into curves. It is good for many reasons, but it's not possible to edit them or move them into different layer anymore. A simple option to export text as editable text or curves would be handful.

Blair Bonnett (bcb)
tags: added: dxf export pcbnew svg
Changed in kicad:
importance: Undecided → Wishlist
Changed in kicad:
importance: Wishlist → Low
importance: Low → Wishlist
pitanga (pitanga)
Changed in kicad:
assignee: nobody → Rodrigo Rodrigues da Silva (pitanga)
tags: added: starter
Revision history for this message
Nick Østergaard (nickoe) wrote :

I think someone made a patch for this in relation to svg at some time, I think it was submitted somewhere, maybe it is worth looking for that.

Revision history for this message
pitanga (pitanga) wrote :

I've been working on this ticket lately. So far the UI is done and the "Plot editable text" is passed down to the DXF plotter driver (just noticed the ticket mentions SVG too).

Today I had some progress and eventually got editable text out of the DXF plotter.

Anyway, could anyone please let me know the reason for using PlotLayerOutlines(...) regardless of layer type when the plot format is DXF (and only DXF)?

Looks like PlotLayerOutlines bypasses DXF_PLOTTER::Text (haven't looked into it yet), which can plot both native text and curves according to the text mode passed to the driver.

If I just ignore PlotLayerOutlines and jump to PlotSilkScreen (as every other plotter type) I get the editable text, but not sure if the other elements are plotted as expected.

I'm new to KiCAD and haven't done much board design before, so I might be missing some user requirement.

thanks!

Revision history for this message
pitanga (pitanga) wrote :

Regarding comment #1, there is no special treatment for SVG text, it is all converted to curves, at least on latest master.

Revision history for this message
Wayne Stambaugh (stambaughw) wrote : Re: [Bug 1423515] Re: pcbnew option to export text as editable text when writing DXF/SVG

This is because fonts in pcbnew are not really fonts in the traditional
sense. They are stroke approximations of a font. That's why they are
not exported as dxf fonts. If you are making changes, please make this
behavior optional. As a user, I expect DXF output to accurately
represent the exported layer not a close proximity there of using
editable dxf fonts. I use this at my day job for user documentation and
accuracy trumps convenience in my world. If users want to substitute
and editable dxf font for the stroke drawn font that's fine as an option
but do not replace the existing behavior.

On 9/15/2016 12:08 AM, pitanga wrote:
> I've been working on this ticket lately. So far the UI is done and the
> "Plot editable text" is passed down to the DXF plotter driver (just
> noticed the ticket mentions SVG too).
>
> Today I had some progress and eventually got editable text out of the
> DXF plotter.
>
> Anyway, could anyone please let me know the reason for using
> PlotLayerOutlines(...) regardless of layer type when the plot format is
> DXF (and only DXF)?
>
> Looks like PlotLayerOutlines bypasses DXF_PLOTTER::Text (haven't looked
> into it yet), which can plot both native text and curves according to
> the text mode passed to the driver.
>
> If I just ignore PlotLayerOutlines and jump to PlotSilkScreen (as every
> other plotter type) I get the editable text, but not sure if the other
> elements are plotted as expected.
>
> I'm new to KiCAD and haven't done much board design before, so I might
> be missing some user requirement.
>
> thanks!
>

Revision history for this message
Eldar Khayrullin (eldar) wrote : Re: pcbnew option to export text as editable text when writing DXF/SVG

What the status of the bug?

Revision history for this message
Eldar Khayrullin (eldar) wrote :

@pitanga What the status of the bug?

Eldar Khayrullin (eldar)
Changed in kicad:
assignee: pitanga (pitanga) → Eldar Khayrullin (eldar)
status: New → Confirmed
tags: added: plot
removed: export
summary: - pcbnew option to export text as editable text when writing DXF/SVG
+ pcbnew option to plot text as editable text when writing DXF/SVG
summary: - pcbnew option to plot text as editable text when writing DXF/SVG
+ pcbnew option to export text as editable text when plotting DXF/SVG
Revision history for this message
Eldar Khayrullin (eldar) wrote : Re: pcbnew option to export text as editable text when plotting DXF/SVG

DXF fix

Changed in kicad:
status: Confirmed → Opinion
status: Opinion → In Progress
Revision history for this message
pitanga (pitanga) wrote :

Hey Eldar I havê an incomplete patch here, but I haven't worked on it in a while. If it interests you I'll attach it to the issue.

Revision history for this message
Eldar Khayrullin (eldar) wrote :

Hi pitanga. Sorry your the incomplete patch doesn't need for me

Revision history for this message
Eldar Khayrullin (eldar) wrote :

@Wayne, can you watch another one patch to DXF plotting?
Restricts:
-one line text
-ASCII text
-in non-outline mode.
Another text prints in line or outline mode.

Revision history for this message
Eldar Khayrullin (eldar) wrote :
Revision history for this message
Wayne Stambaugh (stambaughw) wrote :

@Eldar, I merged your patch into the master branch. Thanks!

Revision history for this message
KiCad Janitor (kicad-janitor) wrote :

Fixed in revision f3457794cf16ee66929069cd89464df271946d26
https://git.launchpad.net/kicad/patch/?id=f3457794cf16ee66929069cd89464df271946d26

Changed in kicad:
status: In Progress → Fix Committed
Revision history for this message
Eldar Khayrullin (eldar) wrote :

Thank you, @Wayne

summary: - pcbnew option to export text as editable text when plotting DXF/SVG
+ pcbnew option to export text as editable text when plotting DXF
tags: removed: svg
Revision history for this message
Eldar Khayrullin (eldar) wrote :

@Jan Cablik, you should open an other bug for SVG format.

Revision history for this message
Eldar Khayrullin (eldar) wrote :

@Wayne, it will be cool if you released this one and this https://bugs.launchpad.net/kicad/+bug/1643330.

Revision history for this message
Wayne Stambaugh (stambaughw) wrote : Re: [Bug 1423515] Re: pcbnew option to export text as editable text when plotting DXF

Do you mean merge them into the stable 4 branch? They have both been
merged into the product branch.

On 5/3/2017 12:05 PM, Eldar Khayrullin wrote:
> @Wayne, it will be cool if you released this one and this
> https://bugs.launchpad.net/kicad/+bug/1643330.
>

Revision history for this message
Eldar Khayrullin (eldar) wrote :

Yes, I want to that they will be merged in stable 4 branch.

Revision history for this message
Wayne Stambaugh (stambaughw) wrote :

@Eldar, neither of these patches merge cleanly into the stable branch.
Even cherry picking makes a mess of it. If you want these patches in
the stable 4 branch, please make them apply cleanly against the stable 4
branch. I don't have the time to do it right now.

On 5/3/2017 1:45 PM, Eldar Khayrullin wrote:
> Yes, I want to that they will be merged in stable 4 branch.
>

Changed in kicad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.