0

I'm working on a Python project where I need to convert text into DXF format, specifically to create laser-readable text for laser cutting applications. I would like to use the font tl_lasersans for this purpose.

I'm currently using the ezdxf library in Python to work with DXF files. However, I'm unsure how to use a specific font like tl_lasersans and ensure that the resulting text is compatible with laser cutting machines.

Could someone please provide guidance on how to convert text to DXF format using the tl_lasersans font or any other laser-compatible font using the ezdxf library? Are there any specific attributes or settings that need to be configured to ensure laser readability?

I appreciate any help or suggestions you can provide. Thank you!

"I have already tried to implement the conversion, but the following issue occurs: while the entered text is output as a DXF file, it is not in a laser-readable font."

Please let me know if there is anything else you would like to discuss or if there are further details you would like to provide. I'm here to assist you.

Mack2
  • 1

1 Answers1

0
  • Can you provide what kind of entities are you using in the DXF (TEXT or MTEXT).
  • Also show an example of the text you want to convert.

Here is some links to ezdxf docs how to set fonts for text:

I know about dxf content, but not laser cutting applications, so not sure about compatibility.

I have a library written in TypeScript that generate dxf @tarikjabiri/dxf but ezdxf is better.

  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Jul 20 '23 at 20:44