ofxSvgLoader icon indicating copy to clipboard operation
ofxSvgLoader copied to clipboard

text not displayed in correct location after AI export

Open stephanschulz opened this issue 2 years ago • 2 comments

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. <g id="text1568" style="isolation: isolate"> <text transform="translate(36.27 68.25)" font-size="30" font-family="Helvetica" style="isolation: isolate">B</text> </g>

Would you know how to make the text alignment correctly?

stephanschulz avatar Dec 01 '21 19:12 stephanschulz

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?

NickHardeman avatar Dec 02 '21 02:12 NickHardeman

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

stephanschulz avatar Dec 02 '21 12:12 stephanschulz