LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   What package's fault is incorrect SVG Unicode rendering? (https://www.linuxquestions.org/questions/linux-software-2/what-packages-fault-is-incorrect-svg-unicode-rendering-769328/)

10110111 11-15-2009 03:16 PM

What package's fault is incorrect SVG Unicode rendering?
 
I generated a SVG plot in Mathematica using Windows as well as Linux version. Now, i see that in windows this file is shown normally from windows version and incorrectly from linux version. Then i go to my linux machine and check this here. On linux only google-chrome shows correct file normally. Any other programs including firefox, gqview, even file selection dialog in its preview area all show both file versions equally incorrectly.

Seems, that all these programs use the same library to display SVG data. But how can i check that it's the fault of this library?

Mr-Bisquit 11-16-2009 12:54 PM

Save svg files in the *.svg format so that all programs can read.

10110111 11-17-2009 12:07 PM

1 Attachment(s)
I do. But it seems that at least all GTK+ programs i have render the fonts which are defined inside SVG file incorrectly. Instead they use system font even if there's no character in that Unicode position and show them as hex code inside square.
Example SVG file is in the attachment (rename it to svg, LQ doesn't accept this file with svg extension)

Mr-Bisquit 11-17-2009 02:00 PM

1 Attachment(s)
It opened for me.
I just added another background.
Do you have inkscape on both machines?

10110111 11-18-2009 08:36 AM

1 Attachment(s)
Yes. It should open. It also does open for me. But as on my system, you don't have parentheses rendered around x in label of Y axis. if you open this file in e.g. Google Chrome, you'll see them, as in many other viewers, but which, as i think, aren't GTK-based. Image in attachment is what it should look like. So, i think this is a bug, but don't know how to determine in which package.

Mr-Bisquit 11-18-2009 04:27 PM

I don't use windows, so I can't readily open google chrome.
If it's gtk or gecko built, the default plugins for firefox should work. You have to add the plugins to the plugin folder and create links.
TRy saving the file in another format. Use Gimp on windows to export.

10110111 11-19-2009 10:48 AM

Well, i don't use windows for this. I used google chrome development build for ubuntu.
Quote:

TRy saving the file in another format.
It's not a good option since this format is the only one which is supported by all the software in conversion chain :) . Yes, it's ugly, but since OpenOffice can't paste Mathematica images, nor import SVG, i have to export image as SVG (the only vector image format Mathematica supports on Linux except of EPS), then convert it to ODG format using Inkscape and then copy-paste the image from ODG document to ODT one... And since inkscape can't handle custom fonts defined in SVG file, and no one program except google chrome can handle this at least to rasterize the image, i need to find out which package's fault is this inability to handle fonts normally.

I'll try to file bug report for GTK+. Maybe its maintainers will point me the right way.

Mr-Bisquit 11-19-2009 03:01 PM

That's strange, seeing that you can use inkscape to create fonts.

10110111 11-20-2009 11:15 AM

I meant not usual system fonts, but those defined in SVG file internally.


All times are GMT -5. The time now is 11:43 AM.