Rendering divergence between Inkscape Win and Linux

Bug #169148 reported by MelkorLord
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Medium
Unassigned

Bug Description

Hi,

Our graphist works on WindowsXP and produced the company logo with Inkscape
0.45.1 then he sent me the resulting SVG file. I'm running Ubuntu Gutsy
with Inkscape 0.45.1 too.

The SVG loads fine bug some objects have wrong X/Y coordinates and so they
are not at the correct position.

After some investigation, here are the findings :

- Linux : Firefox 2.0.0.7, ksvgtopng, Gimp 2.4, GQView 2.1.5 and Karbon
1.6.3 don't render correctly the SVG with various results.

- Windows : AdobeSVG plugin 3.0.3 within IE6 and Firefox don't render
correctly much like in Linux

This is very odd :-(

With Inkscape Win, I saved the logo as Postscript and then Gimp/Karbon (and
all KDE tools offering a PS preview) rendered perfectly the logo without
any glitch.

Is there a bug in the SVG part of Inkscape ?

I've manipulated a lot of SVG files from various sources (Windows and
Linux) and from known and unknown software builders (Illustrator, Visio,
etc...) and this is the first time so many tools such as
Gimp/Karbon/Firefox don't render the SVG file

I can send you the SVG file if needed for debug purposes

Tags: svg win32
Revision history for this message
Luca Bruno (lucab) wrote :

This is also the first time I've heard of a similar issue.
Have you tried to see if those SVG validate with an automatic SVG?
And yes, if it's not a problem for you, the SVG in question should be attached to this bug.

Changed in inkscape:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
ScislaC (scislac) wrote :

Melkorlord,

It would be greatly beneficial if you could provide said file so that the developers can figure out what the issue is.

Revision history for this message
MelkorLord (melkorlord) wrote :

I've sent a tarball to Mr ScislaC with some screenshots showing how the SVG file renders.

BTW, the SVG file was entirely created with Inkscape on WindowsXP from scratch. There was no import whatsoever. I forgot to ask our graphist if used a bitmap in background and drew above it or if drew directly from a blank page.

To Luca Bruno : What do you mean by "Have you tried to see if those SVG validate with an automatic SVG?" ?

Thanks

Revision history for this message
Luca Bruno (lucab) wrote :

Pardon, that should have been "with an automatic SVG validator": something like http://validator.w3.org/ or http://jiggles.w3.org/svgvalidator/

Revision history for this message
jazzynico (jazzynico) wrote :

Melkorlord, are you still affected by this issue with recent Inkscape versions (the latest official release is 0.48.2)?
If so, it you be helpful to attach the SVG file to the bug report so that we could investigate.
Thanks.

Revision history for this message
Autiwa (autiwa) wrote :

I have the same problem, and here is in attachment a file that will help you to reproduce the bug.

In short, here are the things that are aligned under linux (my system) but that do not display correctly under windows :
1) The boxes for the titles are too short on windows and end before the end of the title
2) the text "100 km" is not aligned with respect to the line right under it on windows (for the 3 occurences)
3) the copyright on the bottom right ends outside the page on windows, and on Linux is inside the page, with the last point next to the bottom right corner of the page.

In addition : The person under windows is not able to export the .svg to a bitmap. I suppose the problem comes from the fact that my path is a linux path, starting from "/home/login" which is not recognized by windows (and the applications crashed, as she said to me).

Hope the file and my explanations will help you solve the problem.

Revision history for this message
Alvin Penner (apenner) wrote :

@Autiwa - as far as I can tell, I do not think I have been able to reproduce the problems on Windows. Attached is the png file I get on Windows 7, Inkscape 0.48.3.1, using the File->Export Bitmap function at 90 dpi. Can you indicate whether this file contains the deficiencies you mentioned. Or could you attach a png export of what it should look like?

(there was a glitch encountered when exporting, due to the unix-style pathname, which I will report separately.)

Revision history for this message
Alvin Penner (apenner) wrote :

sorry about that, it turns out that the results depend a lot on which fonts are installed on your computer. The previous png file was done on a computer that did not have the font MyriadPro installed. A rather different result is obtained on a XP machine that does have the font MyriadPro-Light installed (attached file). You might want to check to make sure that both computers have the same set of fonts installed.

Revision history for this message
Autiwa (autiwa) wrote :

Ok, so it is a font problem. By the way, in your first .png file, the rendering is different from my rendering, where the text of each title end aproximately near the end of the box.

"100 km" is not centered in your case.

there is a space between the copyright and the bottom right corner.

I cannot test it because I haven't windows, but I changed all the fonts to "Sans", which is the default font I use for my .svg.

I consider that the bug was found, since a different font was used on both computers.

But is it possible to include "non default" fonts directly in the .svg file, like what is done for images that can be linked or directly embedded in the svg file ?

PS : In the attached file, everything is centered on my computer, title in boxes, "100 km" with respect to the reference line. The copyright is right aligned to the bottom right corner. I can't attach two files it seems. I will upload the .png in a following comment.

Revision history for this message
Autiwa (autiwa) wrote :

And here is the corresponding .png to show the alignement, just in case.

Revision history for this message
su_v (suv-lp) wrote :

> but I changed all the fonts to "Sans", which is the default font I use for my .svg.

Keep in mind that 'Sans' is a font alias, not actually a font, and it depends on the font backend configuration which font is substituted for 'Sans':
on Windows: defaults to 'Arial'
on Linux: depends on the distro, and local fontconfig setup (used to be 'Vera Bitstream Sans', now often is 'DejaVu Sans').

If you want to have text rendered identically across platforms, make sure to specify a specific font, and have the same version of that font installed on all systems (or outline the text i.e. convert it to path, before sharing the SVG file).

On Windows, differences with current stable Inkscape could also be amplified by bug #1060498 (missing font config files in the devlibs used for building & packaging the Windows port).

Revision history for this message
su_v (suv-lp) wrote :

Setting bug status to incomplete - sample files for the original report are not publicly accessible, and there is not way to further investigate the issue.

Comments #6-#11 might be related, or not (and not a bug per se) - however, there is no way to tell …

Changed in inkscape:
status: Triaged → Incomplete
Revision history for this message
su_v (suv-lp) wrote :

Closing - no sample SVG files available to further investigate the reported issue.

Changed in inkscape:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.