I spent most of yesterday tearing my hair out because I couldn't understand why a file created with Inkscape 0.48.5 and a similar file made with Inkscape 0.91 opened perfectly in Gimp 2.8.18 but the file I created in Inkscape 0.92 lost the font and was converted to a plain one.
After lots of comparing of files in Beyond Compare (a small utility to compare data in files) I finally found out that in Inkscape 0.92 all fonts have a ping (') before and after. Opening the file made in Inkscape 0.92 in Wordpad I removed all the pings and lo and behold when opening the file in Gimp 2.8.18 it now had the font as it should be.
I often open a file made in Inkscape in Gimp to add various bits and pieces and often the files contains text so this is quite and issue for me. I am wondering if others have had a similar experience? I am running this on a Windows 10 machine version 1511. I have also just started to use Ubuntu for Inkscape and Gimp but I have not yet updated Inkscape to 0.92 there because I am not sure about the update there; couldn't get it to work when I tried so left Inkscape at 0.91 (I'm very much a Linux baby - just started to try to crawl ) so I don't know if the same problem will rear its head over there.
I tried un-installing and re-installing both Gimp and Inkscape yesterday before DH told me to compare the files and see if I could find any differences. Hope there is a simple fix to this that I haven't found in my run-arounds yesterday. It's not really a problem removing the pings in Wordpad with "find and replace" but still - I'm all for an easy life
TIA for any tips and tricks on this subject
Maga
Problem with fonts in files from Inkscape 0.92 to Gimp 2.8.18
Re: Problem with fonts in files from Inkscape 0.92 to Gimp 2.8.18
Could you make us a test file, which displays the problem? I mean an SVG file, not a text file. I think I have all the programs needed to test. And I can probably find some files to test. But if the problem is with one particular font, I might not have it.
Well I should ask. Do you mean this happens with any font and any text, or just certain fonts?
I want to get clear on the order of things, because I was confused reading your message, and I think there might be a mis-type. You said a file created with Inkscape 0.48.5, with some text, opens correctly in GIMP and Inkscape 0.91, but not Inkscape 0.92.
But then later, it sounded like the problem is with GIMP rather than Inkscape 0.92. But the problem is with 0.92, right?
I don't think you'll be able to attach anything in this board (aarrgh!!) But you could upload to a file sharing site or even certain image hosts accept SVGs (dropbox, or imgh.us)
Edit
Also, were all your tests on the same computer? If the computer where you tested does not have that font installed, Inkscape can't show it.
Well I should ask. Do you mean this happens with any font and any text, or just certain fonts?
I want to get clear on the order of things, because I was confused reading your message, and I think there might be a mis-type. You said a file created with Inkscape 0.48.5, with some text, opens correctly in GIMP and Inkscape 0.91, but not Inkscape 0.92.
But then later, it sounded like the problem is with GIMP rather than Inkscape 0.92. But the problem is with 0.92, right?
I don't think you'll be able to attach anything in this board (aarrgh!!) But you could upload to a file sharing site or even certain image hosts accept SVGs (dropbox, or imgh.us)
Edit
Also, were all your tests on the same computer? If the computer where you tested does not have that font installed, Inkscape can't show it.
Basics - Help menu > Tutorials
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Re: Problem with fonts in files from Inkscape 0.92 to Gimp 2.8.18
Thanks for trying to help me Brynn. I'm not very good at explaining. I'll try to do a step by step of what I did.
Made a file in Inkscape 0.92 containing some text + other stuff. The font I used is available for both Inkscape and Gimp (I can type in Gimp a text string with the font; I can use the same font in Inkscape to type a text string)
Saved the file in Inkscape 0.92
Opened the file in Gimp 2.8.18 and the text was now a different font.
This made me think it was a problem with Gimp so un-installed/re-installed with a fresh download and after having tried the file again and it did not work thought it would be a problem with my version of Inkscape 0.92 so un-installed/re-installed that too with fresh downloads but when that didn't give a different result I did some testing.
First made another file on the same computer with 2 different fonts available to both Inkscape and Gimp and all my other programs on that computer (#1). This file had two text strings one with each of the two fonts. Tested both fonts in Gimp using the text tool in there to make sure it could display the fonts correctly. Again this file made Inkscape 0.92 could not be opened correctly in Gimp 2.8.18
I made a file in Inkscape 0.91 on another computer(#2) using the same two fonts which is also available on that computer (not yet updated Inkscape to 0.92 on that one), saved and tried opening that file in Gimp 2.8.18 first on the same computer (#2) that created the file and then on the original computer (#1) and encountered no problems on either computers (#1 or #2).
I then dug back into my files and found a file created on computer (#1) in Inkscape 0.48.5 with text in one of the fonts tested above. Opened beautifully in Gimp with no change of font.
At this stage I used Beyond Compare (the data compare utility program); compared the two test files above and found the differences in the files created in Inkscape 0.91 and 0.92. This turned out to be the pings I mentioned in my original post - they are added in files created in Inkscape 0.92 but absent in Inkscape 0.91.
Using Wordpad I removed the pings in the file I had made in Inkscape 0.92 and saved it from Wordpad. This new file I can open in Gimp 2.8.18 and the fonts display correctly. It can of course still be opened in Inkscape 0.92 as well as in 0.91.
You ask if this happens with all the fonts - honestly I don't know; I have quite a few on my system (far too many according to DH) but testing 3 different ones and the same thing happens makes me draw the conclusion that it probably happens to them all.
As to where the problems lies - personally I think it is in Inkscape 0.92 seeing that it has worked perfectly all right for a long time whether I used 0.48.5 or 0.91 and yesterday was the first day doing anything with text in 0.92 that I needed to do something to in Gimp.
Seeing I have tested the files on two 'puters it is not likely I think to have anything to do with computer and as I can pinpoint the exact difference (the pings around the font name) when I open the .svg file in Wordpad there must be a setting in Inkscape 0.92 that creates these that was not present in previous versions of Inkscape.
I will try attaching files to this message and see if it works
The first and second files are not edited in Wordpad bus as they were saved in Inkscape whereas the last one Test font 0.92 no pings.svg is the one edited in Wordpad where I removed the pings.
Hope this second post makes more sense than the first
Maga
Made a file in Inkscape 0.92 containing some text + other stuff. The font I used is available for both Inkscape and Gimp (I can type in Gimp a text string with the font; I can use the same font in Inkscape to type a text string)
Saved the file in Inkscape 0.92
Opened the file in Gimp 2.8.18 and the text was now a different font.
This made me think it was a problem with Gimp so un-installed/re-installed with a fresh download and after having tried the file again and it did not work thought it would be a problem with my version of Inkscape 0.92 so un-installed/re-installed that too with fresh downloads but when that didn't give a different result I did some testing.
First made another file on the same computer with 2 different fonts available to both Inkscape and Gimp and all my other programs on that computer (#1). This file had two text strings one with each of the two fonts. Tested both fonts in Gimp using the text tool in there to make sure it could display the fonts correctly. Again this file made Inkscape 0.92 could not be opened correctly in Gimp 2.8.18
I made a file in Inkscape 0.91 on another computer(#2) using the same two fonts which is also available on that computer (not yet updated Inkscape to 0.92 on that one), saved and tried opening that file in Gimp 2.8.18 first on the same computer (#2) that created the file and then on the original computer (#1) and encountered no problems on either computers (#1 or #2).
I then dug back into my files and found a file created on computer (#1) in Inkscape 0.48.5 with text in one of the fonts tested above. Opened beautifully in Gimp with no change of font.
At this stage I used Beyond Compare (the data compare utility program); compared the two test files above and found the differences in the files created in Inkscape 0.91 and 0.92. This turned out to be the pings I mentioned in my original post - they are added in files created in Inkscape 0.92 but absent in Inkscape 0.91.
Using Wordpad I removed the pings in the file I had made in Inkscape 0.92 and saved it from Wordpad. This new file I can open in Gimp 2.8.18 and the fonts display correctly. It can of course still be opened in Inkscape 0.92 as well as in 0.91.
You ask if this happens with all the fonts - honestly I don't know; I have quite a few on my system (far too many according to DH) but testing 3 different ones and the same thing happens makes me draw the conclusion that it probably happens to them all.
As to where the problems lies - personally I think it is in Inkscape 0.92 seeing that it has worked perfectly all right for a long time whether I used 0.48.5 or 0.91 and yesterday was the first day doing anything with text in 0.92 that I needed to do something to in Gimp.
Seeing I have tested the files on two 'puters it is not likely I think to have anything to do with computer and as I can pinpoint the exact difference (the pings around the font name) when I open the .svg file in Wordpad there must be a setting in Inkscape 0.92 that creates these that was not present in previous versions of Inkscape.
I will try attaching files to this message and see if it works
The first and second files are not edited in Wordpad bus as they were saved in Inkscape whereas the last one Test font 0.92 no pings.svg is the one edited in Wordpad where I removed the pings.
Hope this second post makes more sense than the first
Maga
Re: Problem with fonts in files from Inkscape 0.92 to Gimp 2.8.18
inkscape 0.92 use the correct font-family:'Africaans SF'
while inkscape 0.91 used the less correct font-family:Africaans SF
see https://www.w3.org/TR/2008/REC-CSS2-200 ... cification
Font family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the font name are ignored and any sequence of whitespace characters inside the font name is converted to a single space.
the problem is probably in the gimp svg parser.
while inkscape 0.91 used the less correct font-family:Africaans SF
see https://www.w3.org/TR/2008/REC-CSS2-200 ... cification
Font family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the font name are ignored and any sequence of whitespace characters inside the font name is converted to a single space.
the problem is probably in the gimp svg parser.
Re: Problem with fonts in files from Inkscape 0.92 to Gimp 2.8.18
v1nce wrote:inkscape 0.92 use the correct font-family:'Africaans SF'
while inkscape 0.91 used the less correct font-family:Africaans SF
see https://www.w3.org/TR/2008/REC-CSS2-200 ... cification
Font family names containing whitespace should be quoted. If quoting is omitted, any whitespace characters before and after the font name are ignored and any sequence of whitespace characters inside the font name is converted to a single space.
the problem is probably in the gimp svg parser.
Thank you for getting in touch, Vince. Done another test using a font with no whitespace character (Braggadocio) and that has indeed no pings when saved in version 0.92. I will now move my question on to a Gimp forum and hope there will be a solution to this with a setting in Gimp seeing that Inkscape is now using a more correct way of handling fonts. Thank you very much for the link - much appreciated.
Maga