svenhb / GRBL-Plotter

A GCode sender (not only for lasers or plotters) for up to two GRBL controller. SVG, DXF, HPGL import. 6 axis DRO.
https://grbl-plotter.de/
GNU General Public License v3.0
684 stars 176 forks source link

Plotter software reads dxf files containing text and svg files, an error occurs #103

Closed lianzaozi closed 4 years ago

lianzaozi commented 4 years ago

Plotter software reads dxf files containing text and svg files, an error occurs

Plotter software reads screenshots of dxf files with text 5

CAD software reads a screenshot of the same DXF file with text 6

Plotter software reads screenshots of svg files with text 3

Screenshot of Inkscape software reading the same SVG file with text 2

svenhb commented 4 years ago

grbl-Plotter can't read real text from SVG - too complicated to implement. Workarround for SVG: convert text to path, then it works.

lianzaozi commented 4 years ago

But the text in the dxf file cannot be parsed normally.

svenhb commented 4 years ago

I already use the DXF font (*.lff) when "Generating G-Code from Text". So I can support Text-entity from DXF file. Inside DXF file, the text, font-family, size, position etc. are stored...

lianzaozi commented 4 years ago

Thank you very much. I tested it with LibreCAD to create a dxf file with text. The plotter software does recognize the text in a dxf file with text created with LibreCAD. The fonts in LibreCAD software do not support Chinese. I tested all the fonts in LibreCAD and displayed garbled characters when typing Chinese.

But read the text created by AUTOCAD software with dxf plotter software that can not recognize the text.

svenhb commented 4 years ago

In Inkscape you can use any windows-font (I think), I tried with chinese text and at least there are two fonts showing difference style for chinese text. image

lianzaozi commented 4 years ago

Thank you very much for your answer Inkscape supports Chinese very well, LibreCAD software does not support Chinese. Now there is only the method of converting text to track and saving as SVG in Inkscape.

svenhb commented 4 years ago

You have a lot of options

lianzaozi commented 4 years ago

ok

svenhb commented 4 years ago

As described, it's too complicated to implement real text import from SVG.