NickHardeman / ofxSvgLoader

Addon for OpenFrameworks for parsing svg files.
31 stars 5 forks source link

text not displayed in correct location after AI export #5

Open stephanschulz opened 2 years ago

stephanschulz commented 2 years ago

This is what my svg looks like in illustrator 25.2.2 on macOS 10.15.6.

Screen Shot 2021-12-01 at 2 10 21 PM

This is the svg in OF 0.11.

Screen Shot 2021-12-01 at 2 10 14 PM

0

These are my export settings

Screen Shot 2021-12-01 at 2 07 26 PM

I do see differences between the sample.svg <text transform="matrix(1 0 0 1 541.8818 78.5449)" fill="#494949" font-family="'ArialMT'" font-size="21">openFrameworks tries to balance usability </text>

and my svg. `

B
</g>`

Would you know how to make the text alignment correctly?

NickHardeman commented 2 years ago

Hello, Looks like the transform attribute is different and just passes the translate information. Does changing the styling change what's output in the transform tag?

stephanschulz commented 2 years ago

For now I switched to using Inkscape but still have to open the file in a text editor first and delete the lines

   width="210mm"
   height="297mm"

for the letters to align with the path lines