LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 11-15-2009, 04:16 PM   #1
10110111
Member
 
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 403

Rep: Reputation: 51
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?
 
Old 11-16-2009, 01:54 PM   #2
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
Save svg files in the *.svg format so that all programs can read.
 
Old 11-17-2009, 01:07 PM   #3
10110111
Member
 
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 403

Original Poster
Rep: Reputation: 51
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)
Attached Files
File Type: txt gamma.svg.txt (25.2 KB, 14 views)
 
Old 11-17-2009, 03:00 PM   #4
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
It opened for me.
I just added another background.
Do you have inkscape on both machines?
Attached Thumbnails
Click image for larger version

Name:	g3318.png
Views:	15
Size:	5.5 KB
ID:	1989  
 
Old 11-18-2009, 09:36 AM   #5
10110111
Member
 
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 403

Original Poster
Rep: Reputation: 51
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.
Attached Thumbnails
Click image for larger version

Name:	rasterized.png
Views:	13
Size:	6.4 KB
ID:	2006  
 
Old 11-18-2009, 05:27 PM   #6
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
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.
 
Old 11-19-2009, 11:48 AM   #7
10110111
Member
 
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 403

Original Poster
Rep: Reputation: 51
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.
 
Old 11-19-2009, 04:01 PM   #8
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
That's strange, seeing that you can use inkscape to create fonts.
 
Old 11-20-2009, 12:15 PM   #9
10110111
Member
 
Registered: Jun 2008
Location: St.-Petersburg, Russia
Distribution: (B)LFS, Ubuntu, SliTaz
Posts: 403

Original Poster
Rep: Reputation: 51
I meant not usual system fonts, but those defined in SVG file internally.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: SVG Web: Google Brings SVG Support to Internet Explorer LXer Syndicated Linux News 0 08-25-2009 05:12 PM
modify the definitions set on the package's control file directly for your repository Teenna Linux - Newbie 5 12-05-2008 06:32 PM
LXer: The Road to KDE 4: SVG Rendering in Applications LXer Syndicated Linux News 0 01-03-2007 01:54 PM
How does apt-get work out a package's dependencies? J_K9 Linux - General 2 12-03-2005 03:53 PM
Incorrect Mouse, Incorrect Keymap, and Trapped in X Kenji Miyamoto Debian 8 08-24-2005 03:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration