Strange position offset for all text when importing SVG's

Post questions on how to use or achieve an effect in Inkscape.
JJL
Posts: 3
Joined: Tue Nov 13, 2012 12:58 pm

Strange position offset for all text when importing SVG's

Postby JJL » Tue Nov 13, 2012 1:14 pm

I'm using D3js to make a figure and the text becomes offset when I import the svg into Inkscape. Anyone have an idea on why this is happening? Thanks!

How it looks in Firefox:
Image

Imported into Inkscape:
Image
Last edited by JJL on Tue Nov 13, 2012 2:35 pm, edited 1 time in total.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Strange position offset for all text when importing SVG'

Postby brynn » Tue Nov 13, 2012 2:20 pm

Welcome to InkscapeForum!

What's D3js?

JJL
Posts: 3
Joined: Tue Nov 13, 2012 12:58 pm

Re: Strange position offset for all text when importing SVG'

Postby JJL » Wed Nov 14, 2012 1:32 am

D3js is a neat visualization javascript library to create svg figures from data.
http://d3js.org/

JJL
Posts: 3
Joined: Tue Nov 13, 2012 12:58 pm

Re: Strange position offset for all text when importing SVG'

Postby JJL » Fri Nov 16, 2012 7:51 am

Figured it out, apparently I'm getting the same bug as here: https://bugs.launchpad.net/inkscape/+bug/1036010 where Inkscape is treating "em" units from my svg file as the scientific "e" notation instead so all of the dy=".71em" attached to the text were being ignored.

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Strange position offset for all text when importing SVG'

Postby brynn » Fri Nov 16, 2012 7:41 pm

Well good news then :D I actually had no idea.

moovida
Posts: 1
Joined: Mon Aug 17, 2015 5:56 pm

Re: Strange position offset for all text when importing SVG'

Postby moovida » Mon Aug 17, 2015 6:01 pm

Hi JJL, I am experiencing the same issue.
Since the bug seems fixed in the ticket, I tried to download the development version (adding the ubuntu repo), but the issue still remains for me.

It gets very ugly when multilinehandling from d3js was done through tspan tags with relative distances in em.

Were you able to see the result in some development version? Just to make sure I am not doing something wrong.


Return to “Help with using Inkscape”