Abinash Mohanty Posted January 9, 2020 Posted January 9, 2020 Somehow one of the texts from affinity to svg doesn't export nicely. As you can see the lower text got squeezed, and not retained its isometric grid while exporting. I can view this SVG file on the web and affinity without any problem. But if I try to open this in Sketch app, it looks weird. Any idea what's causing this issue? Quote
Geoff777 Posted January 10, 2020 Posted January 10, 2020 Was the text converted to curves before or during the export? Quote
Abinash Mohanty Posted January 10, 2020 Author Posted January 10, 2020 I tried both: with outline and without, but none of them worked. And only that particular text is not retaining its grid position. Quote
Dan C Posted January 10, 2020 Posted January 10, 2020 Hi Abinash Mohanty 16 hours ago, Abinash Mohanty said: I can view this SVG file on the web and affinity without any problem. But if I try to open this in Sketch app, it looks weird. Any idea what's causing this issue? This is likely due to the way Sketch reads SVG transformations. Please open the Export panel and with SVG selected, click the 'More' option in the bottom right of the dialog. Here, please try unticking Set View Box and ticking Flatten Transforms, then export your SVG again and open this in Sketch. If your SVG still doesn't look correct, try the same 2 options above and also tick Use Relative Coordinates, then export and try this file. Please do let me know if this helps! Quote
Abinash Mohanty Posted January 10, 2020 Author Posted January 10, 2020 Hi Dan, like you said, I have unticked Set View Box and ticked Flatten Transforms, then exported SVG, but no change. Quote
Dan C Posted January 10, 2020 Posted January 10, 2020 Thanks for letting me know and I'm sorry to hear that! 4 hours ago, Dan C said: If your SVG still doesn't look correct, try the same 2 options above and also tick Use Relative Coordinates, then export and try this file. Have you tried the above also? Quote
Abinash Mohanty Posted January 10, 2020 Author Posted January 10, 2020 Yes, Dan. I'm sharing this particular file with you. Would mind testing this? isometric.afdesign Quote
Dan C Posted January 10, 2020 Posted January 10, 2020 Thanks for your file! I can see this particular layer has been converted to an Artboard (hence the small artboard name which is visible on your design), which is the reason you cannot export correctly to SVG currently - Please copy the text from the object, delete it, then draw a new text frame and try exporting your SVG again Quote
Abinash Mohanty Posted January 10, 2020 Author Posted January 10, 2020 Oh Man! I'm so stupid and I didn't know how that converted into an artboard. Thanks for pointing out. I will sort this now. Thanks a lot Dan. Dan C 1 Quote
Ision Industries Posted April 10, 2021 Posted April 10, 2021 Hi @Dan C I think I may have run into the same issue. Why does having the text as an art board cause problems like this with SVG export? Quote
Dan C Posted April 12, 2021 Posted April 12, 2021 On 4/10/2021 at 6:59 PM, Ision Industries said: Why does having the text as an art board cause problems like this with SVG export? In the OP's document, the text was an Artboard layer (which is essentially a container) nested within a rectangle, within a group. When exporting 'Artboards' to SVG, a <rect> object will be created to specify the size of the Artboard. I can only imagine that Sketch's SVG importer was not 'used' to SVG files like this and did not know how to interpret it - as OP confirmed: On 1/9/2020 at 3:59 PM, Abinash Mohanty said: I can view this SVG file on the web and affinity without any problem. But if I try to open this in Sketch app, it looks weird When exporting and importing documents, not only the app that you're exporting from, but also the app you're importing into must be taken into account. As for the use of Artboards in the above document, I would recommend that artboards should be used differently to this and if you require a text object you should use one of the specific text tools provided. If you'd like to provide a copy of your Affinity document then I'd be more than happy to take a look and offer further suggestions Ision Industries 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.