Problem with Inkscape 0.45.1 on Gentoo
Since performing a recent upgrade on Gentoo (which included updating a LOT of core libraries, as well as upgrading Inkscape from 0.43 to 0.45.1), I've had problems with fonts when importing SVG files.
An example of the output is: http://www.msl.ri.cmu.edu/~gch/2007/inkscape-problem/
Basically, I have a workflow where I export SVGs from Matlab, then make minor changes to the figure in Inkscape, and then export an EPS graphic which is used for scientific publication.
Currently, it seems like the imported fonts are being very messed up, like all text bits being centered at one point, etc. You can see it in the figure above. The same file opens fine with Mozilla Firefox.
I realize that, given that a lot of libraries were recently updated on my machine, this may not be an inkscape problem. What other packages could be causing this? I do not see problems with any other programs on my computer ...
Thanks, and I hope I can get this fixed soon! Trying to get a journal publication out the door :-)
FYI, the SVG renders just fine on the Win32 build of 0.45.1 (XP SP2).
greg.fenton
On Nov 30, 2007 2:01 PM, G. Clark Haynes <gch@...2407...> wrote:
Since performing a recent upgrade on Gentoo (which included updating a LOT of core libraries, as well as upgrading Inkscape from 0.43 to 0.45.1), I've had problems with fonts when importing SVG files.
An example of the output is: http://www.msl.ri.cmu.edu/~gch/2007/inkscape-problem/http://www.msl.ri.cmu.edu/%7Egch/2007/inkscape-problem/
Your file renders OK on 0.45.1, and a recent build (21 Nov) of Inkscape and on Explorer 6. Win 2000 sp4.
Erik
kaver@...45... ----- Original Message ----- From: "G. Clark Haynes" <gch@...2407...> To: inkscape-user@lists.sourceforge.net Sent: Saturday, December 01, 2007 6:01 AM Subject: [Inkscape-user] Problem with Inkscape 0.45.1 on Gentoo
Since performing a recent upgrade on Gentoo (which included updating a LOT of core libraries, as well as upgrading Inkscape from 0.43 to 0.45.1), I've had problems with fonts when importing SVG files.
An example of the output is: http://www.msl.ri.cmu.edu/~gch/2007/inkscape-problem/
Basically, I have a workflow where I export SVGs from Matlab, then make minor changes to the figure in Inkscape, and then export an EPS graphic which is used for scientific publication.
Currently, it seems like the imported fonts are being very messed up, like all text bits being centered at one point, etc. You can see it in the figure above. The same file opens fine with Mozilla Firefox.
I realize that, given that a lot of libraries were recently updated on my machine, this may not be an inkscape problem. What other packages could be causing this? I do not see problems with any other programs on my computer ...
Thanks, and I hope I can get this fixed soon! Trying to get a journal publication out the door :-)
--
Clark Haynes, gch@...2407... http://www.cs.cmu.edu/~gch/ Ph.D. Student, The Robotics Institute Carnegie Mellon University =====================================
SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
Your file also renders fine on a fairly recent devel build from SVN (16429, Nov 4) under Fedora Core 6 (see screenshot).
By the way, I noticed you are creating your figures using Juerg Schwizer's excellent plot2svg converter. For those Matlab figures that it can't handle (containing uipanels, etc), I've had good luck using a combination of 'savefig' (from the mathworks file exchange: http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=108...) to save to PDF, then using pdf2svg from http://www.cityinthesky.co.uk/pdf2svg.html. You lose a lot (text converted to outlines, e.g.) compared to plot2svg, but at least it's still vector art...
I've pasted in a little matlab script below that calls pdf2svg.
function pdf2svg(file_in, file_out) % PDF2SVG convert PDF file to SVG file
if unix('which pdf2svg'), error(['pdf2svg not installed, can''t convert. Visit http://' ... 'www.cityinthesky.co.uk/pdf2svg.html']);
end
cmd = [ 'pdf2svg ' file_in ' ' file_out ]; status = unix(cmd);
if status error(['pdf2svg call returned an error: ' cmd]); end
On Nov 30, 2007 12:47 PM, kaver <kaver@...45...> wrote:
Your file renders OK on 0.45.1, and a recent build (21 Nov) of Inkscape and on Explorer 6. Win 2000 sp4.
Erik
kaver@...45...
----- Original Message ----- From: "G. Clark Haynes" <gch@...2407...> To: inkscape-user@lists.sourceforge.net Sent: Saturday, December 01, 2007 6:01 AM Subject: [Inkscape-user] Problem with Inkscape 0.45.1 on Gentoo
Since performing a recent upgrade on Gentoo (which included updating a LOT of core libraries, as well as upgrading Inkscape from 0.43 to 0.45.1), I've had problems with fonts when importing SVG files.
An example of the output is: http://www.msl.ri.cmu.edu/~gch/2007/inkscape-problem/
Basically, I have a workflow where I export SVGs from Matlab, then make minor changes to the figure in Inkscape, and then export an EPS graphic which is used for scientific publication.
Currently, it seems like the imported fonts are being very messed up, like all text bits being centered at one point, etc. You can see it in the figure above. The same file opens fine with Mozilla Firefox.
I realize that, given that a lot of libraries were recently updated on my machine, this may not be an inkscape problem. What other packages could be causing this? I do not see problems with any other programs on my computer ...
Thanks, and I hope I can get this fixed soon! Trying to get a journal publication out the door :-)
--
Clark Haynes, gch@...2407... http://www.cs.cmu.edu/~gch/ Ph.D. Student, The Robotics Institute Carnegie Mellon University =====================================
SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
Thanks for letting me know that the file renders well for all of you. I discovered through some testing that, at fault is Matlab's convention for naming fonts (since it runs its own font system).
In the SVG file, it was only using "Times", which is not a registered font on my system. If I changed the font to "Times New Roman" for all instances of any text, the file renders fine.
Consider it solved! :-)
On Sat, 2007-12-01 at 07:47 +1100, kaver wrote:
Your file renders OK on 0.45.1, and a recent build (21 Nov) of Inkscape and on Explorer 6. Win 2000 sp4.
Erik
kaver@...45... ----- Original Message ----- From: "G. Clark Haynes" <gch@...2407...> To: inkscape-user@lists.sourceforge.net Sent: Saturday, December 01, 2007 6:01 AM Subject: [Inkscape-user] Problem with Inkscape 0.45.1 on Gentoo
Since performing a recent upgrade on Gentoo (which included updating a LOT of core libraries, as well as upgrading Inkscape from 0.43 to 0.45.1), I've had problems with fonts when importing SVG files.
An example of the output is: http://www.msl.ri.cmu.edu/~gch/2007/inkscape-problem/
Basically, I have a workflow where I export SVGs from Matlab, then make minor changes to the figure in Inkscape, and then export an EPS graphic which is used for scientific publication.
Currently, it seems like the imported fonts are being very messed up, like all text bits being centered at one point, etc. You can see it in the figure above. The same file opens fine with Mozilla Firefox.
I realize that, given that a lot of libraries were recently updated on my machine, this may not be an inkscape problem. What other packages could be causing this? I do not see problems with any other programs on my computer ...
Thanks, and I hope I can get this fixed soon! Trying to get a journal publication out the door :-)
--
Clark Haynes, gch@...2407... http://www.cs.cmu.edu/~gch/ Ph.D. Student, The Robotics Institute Carnegie Mellon University =====================================
SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
On 2007-November-30 , at 22:53 , G. Clark Haynes wrote:
Thanks for letting me know that the file renders well for all of you. I discovered through some testing that, at fault is Matlab's convention for naming fonts (since it runs its own font system).
In the SVG file, it was only using "Times", which is not a registered font on my system. If I changed the font to "Times New Roman" for all instances of any text, the file renders fine.
Consider it solved! :-)
I have a similar workflow but found that many scientific software provide poor SVG (except for gnumeric maybe). But they often provide very good PDFs and the devel version of Inkscape also has very good pdf support. So if you can upgrade to a new inkscape version this is a very good workflow. It has the additional advantage that you can send your pdf files to anyone while this is (unfortunately) not true for SVG.
JiHO --- http://jo.irisson.free.fr/
participants (5)
-
G. Clark Haynes
-
greg fenton
-
jiho
-
kaver
-
Tom Davidson