Jump to content

Problem with opening .SVG file


Recommended Posts

Hello,

When I open a .svg file with affinity designer, I see the font, numbers are not displayed correctly. Same thing happened with affinity photo.

I use the latest version of affinity designer from the App Store.

.svg file is attached.

2.png

3.png

test2.svg

Link to comment
Share on other sites

  • Moderators

The same is happening for me, however there isn't anything that can be adjusted to change the way is which the SVG file is imported. The numbers would need to be deleted and created again.

Link to comment
Share on other sites

There are no text elements in that SVG, the text is drawn as paths and the path elements for the text have transforms applied to them and the Affinity suite doesn’t ‘do’ transform perfectly.
I suspect – but can’t prove – that this is where the problem is coming from.
See this thread for more information (and links to yet more information): https://forum.affinity.serif.com/index.php?/topic/154583-bug-svg-transform-property-isnt-handle-right/

Is it possible for you to export, from the application you use to create the SVG, without the transforms? (I don’t know what the functionality will be called, maybe “Flatten Transforms” or something like that.)

Link to comment
Share on other sites

  • 1 month later...
3 hours ago, GioPasqui said:

I am facing the same problem when exporting .svg from python scripts. 

In case of the OP and his initial matplotlib based imports ...

#!/usr/bin/env python3

import proplot as pplt
import matplotlib.pyplot as plt
...

... the usage of pycairo instead for the SVG output generation ...

#!/usr/bin/env python3

import proplot as pplt
import cairo
import matplotlib
import matplotlib.pyplot as plt
matplotlib.use('Cairo')
...

... yields to better by ADe parsable SVG code.

  • Other than that making use of the SVGwrite library (docs are here) is always also a good way to generate SVG graphics output which ADe can usually parse in without problems.

 

☛ Affinity Designer 1.10.5 ◆ Affinity Photo 1.10.5 ◆ OSX El Capitan

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...

Important Information

Please note there is currently a delay in replying to some post. See pinned thread in the Questions forum. These are the Terms of Use you will be asked to agree to if you join the forum. | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.