-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate paths on single line font in DXF export #520
Comments
p.s. happy to offer a bounty to get this fixed as would save us a huge amount of machining time |
So… no layers… no grouping… just a single letter from a single line font? Can you attach the font? |
The DXF contains various items on different layers. I've attached both the reg and straight line versions of the font along with the DXF exports for each and screen shot of file and layer structure below, you'll see all the lines from the Text object are on a layer called engrave |
Hello @timdiacon - my apologies that I just got to this, I just found it in my inbox. I loaded the ttf file you sent, and it does indeed contain a double line on top of itself. I surmise that this was the font developer's method of creating a "closed" geometry with zero area. If you cannot get a font that is truly a single line, you may need to write a function to iterate over paths of a Text model and remove duplicates by comparison. |
I'm using a single line font to create text objects which are then engraved on a CNC machine. I'm getting an issue where the paths of the font are duplicated in the exported DXF file.
I have two versions of the font. The first uses beziers as below
The second image above is a screen shot from a CAD application where I have offset the duplicate lines. You will see each individual bezier occurs twice in the file. I have also selected every other path in the duplicates which then appear red and you can see there are a lot more beziers than in the original font (i have tried experimenting with the bezier accuracy option but it doesn't seem to effect the output), this is a minor point but lead me to try using a version of the font which is just comprised of straight lines as below
Again each individual line is duplicated in the export as shown below however this time the straight lines match those of the font
The duplication is a big issue as when the DXF is imported into out toolpathing application it treats the duplicate lines as an object which needs to be closed and preventing us from then joining them together into a single line.
I think this duplication is a bug caused by single line fonts not being closed fills like more regular fonts.
As a side note I've also tried using captions instead but we get problems where these are not parsed correctly in the toolpathing application and get strangely rotated. We can't also measure the size and then position captions as accurately as we can text objects so we really want to try and fix this duplication. If we manually open up the DXF and remove the duplicates and resave it is imported perfectly into the tool pathing application as a series of open vectors which can then be joined together.
The text was updated successfully, but these errors were encountered: