Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-15-2009, 04:16 PM
|
#1
|
Member
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 403
Rep:
|
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?
|
|
|
11-16-2009, 01:54 PM
|
#2
|
Member
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Rep:
|
Save svg files in the *.svg format so that all programs can read.
|
|
|
11-17-2009, 01:07 PM
|
#3
|
Member
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 403
Original Poster
Rep:
|
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)
|
|
|
11-17-2009, 03:00 PM
|
#4
|
Member
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Rep:
|
It opened for me.
I just added another background.
Do you have inkscape on both machines?
|
|
|
11-18-2009, 09:36 AM
|
#5
|
Member
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 403
Original Poster
Rep:
|
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.
|
|
|
11-18-2009, 05:27 PM
|
#6
|
Member
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Rep:
|
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.
Last edited by Mr-Bisquit; 11-18-2009 at 05:32 PM.
|
|
|
11-19-2009, 11:48 AM
|
#7
|
Member
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 403
Original Poster
Rep:
|
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.
|
|
|
11-19-2009, 04:01 PM
|
#8
|
Member
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Rep:
|
That's strange, seeing that you can use inkscape to create fonts.
|
|
|
11-20-2009, 12:15 PM
|
#9
|
Member
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 403
Original Poster
Rep:
|
I meant not usual system fonts, but those defined in SVG file internally.
|
|
|
All times are GMT -5. The time now is 12:12 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|