Skip to content
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

PyCAM Not Recognizing SVG "transform" Attribute Correctly. #183

Open
TalkVideo opened this issue Dec 28, 2020 · 1 comment
Open

PyCAM Not Recognizing SVG "transform" Attribute Correctly. #183

TalkVideo opened this issue Dec 28, 2020 · 1 comment

Comments

@TalkVideo
Copy link

TalkVideo commented Dec 28, 2020

GIMP-SVG-Letters
Inkscape-SVG-Letters
gimpdrawing.svg.txt
inkscapedrawing.svg.txt

PyCAM Version: 0.0-unknown
Commit ID: 4687f2f

Steps To Reproduce:
In Inkscape 0.92:

  1. File->New
  2. Extensions->Render->Hershey Text
  3. Enter Your Text And Typeset it. [Apply]. Font Chosen Was Sans 1-stroke
  4. Select Text You Entered on Page. Edit->Resize Page to Selection. (This Step Is Optional).
  5. Save File As SVG.

When You load that SVG File into PyCAM, all of the letters will be stacked on top of each other. (See Attached Screen Shot).

GIMP writes the SVG Path differently than Inkscape. (Compare Attached SVG Files). It uses "M" and "C" Co-Ordinates.
The Inkscape file uses a "translate" directive to sequence each letter, but PyCAM ignores it.

In GIMP 2.10:

  1. File->New
  2. Create new File. Attached is 600 DPI, 600x600, 8-Bit Greyscale.
  3. Add Text using Text Tool. Font Used was "Quicksand".
  4. Layers Tab Right Click->Merge Down Text Layer Into Background.
  5. Use Select By Color Tool To select your text. (Use Black Text, White Background).
  6. Select->To Path
  7. Paths Tab-> Right Click Export Path. (Save as SVG File).
  8. Open SVG File from GIMP in PyCAM. Letters will be in order.
@nseinlet
Copy link

nseinlet commented Aug 2, 2021

Which version of svg.path python module are you using?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants