font in svg but there is nothing there (bug?)

Post questions on how to use or achieve an effect in Inkscape.
neilw
Posts: 32
Joined: Sat Oct 13, 2012 2:00 am

font in svg but there is nothing there (bug?)

Postby neilw » Tue Apr 23, 2013 8:13 am

Hello,
I'm sending a friend a SVG and he says he keeps getting errors with a missing fonts 'sans' and 'dungeon'. I opened the SVG and there indeed is a font section for 'sans' and 'dungeon'. But I've removed all the objects one by one and despite it now being an empty file it still has the font section referenced in the file. If I start with an empty file then there are no font tags in the SVG.

I've attached. Can somebody help please as I don't want to send my picture to the printers for it to fall over with font errors.

Note, at one point I was using various fonts but I converted them all using object to path.

Thanks.
Attachments
controlpanel_callatest2.svg
(116.65 KiB) Downloaded 205 times

User avatar
druban
Posts: 1917
Joined: Fri Nov 20, 2009 10:48 pm

Re: font in svg but there is nothing there (bug?)

Postby druban » Tue Apr 23, 2013 8:33 am

Hav
Last edited by druban on Wed May 29, 2013 7:49 pm, edited 3 times in total.
Your mind is what you think it is.

matelot
Posts: 3
Joined: Tue Apr 23, 2013 7:03 am

Re: font in svg but there is nothing there (bug?)

Postby matelot » Tue Apr 23, 2013 8:39 am

just an idea but how does it send fonts, if it sends a reference to a font on the computer and he doesnt have those fonts on his, that might give you the error message. Just a thought.
Last edited by matelot on Wed Apr 24, 2013 8:17 am, edited 1 time in total.

v1nce
Posts: 696
Joined: Wed Jan 13, 2010 4:36 am

Re: font in svg but there is nothing there (bug?)

Postby v1nce » Tue Apr 23, 2013 8:40 am

druban wrote:Have you tried using the file menu command 'vacuum defs' (or 'clean up document' in later versions'?) If that does not work there are more things to try but typically I would try that first. It depends on where the font reference is, because sometimes it persists in the object's style.


Yes there's in a font-style onto a flowRoot that is not cleaned when vacuuming defs.
It should be better with attached version.

Is this supposed to be a template ? There are a lot of guides (that will be only usefull in inkscape) and a sand texture (maybe you want to clean it too). And when you remove this then the doc is empty so it will not be really usefull for a non-inkscape user.
Attachments
controlpanel_callatest2.svg
(116.62 KiB) Downloaded 142 times

User avatar
druban
Posts: 1917
Joined: Fri Nov 20, 2009 10:48 pm

Re: font in svg but there is nothing there (bug?)

Postby druban » Tue Apr 23, 2013 8:49 am

[del]
Last edited by druban on Wed May 29, 2013 7:50 pm, edited 2 times in total.
Your mind is what you think it is.

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: font in svg but there is nothing there (bug?)

Postby Lazur » Tue Apr 23, 2013 9:18 am

Opened your file and cannot see anything.
What do you want with that? Change the font inside the svg?
There is a font-family section in the codes, that was set to sans;
in the attached version, it is changed to arial.
Attachments
controlpanel_callatest2II.svg
(116.65 KiB) Downloaded 142 times

neilw
Posts: 32
Joined: Sat Oct 13, 2012 2:00 am

Re: font in svg but there is nothing there (bug?)

Postby neilw » Wed Apr 24, 2013 6:03 am

Hello,
The blank file was just me removing absolutely everything to try and pin-point the font, i.e. I removed everything and still it had fonts. I did try and manually edit the XML but I must have wiped too much as it failed to load afterwards. I tried vacuuming and it doesn't remove them.

I've attached the real one if anyone could help, please, my finished arcade cabinet is resting on this :)

btw, there is a black rounded border rectangle (stroke only, no fill) that I used to hide the red around the outside. When I send my friend this file with this border in it fails to load in Illustrator, if I remove the border it works fine.

btw, please no comments on the quality, I'm not an artist :(
Attachments
controlpanel_clean.svg
(55.19 KiB) Downloaded 162 times

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: font in svg but there is nothing there (bug?)

Postby Lazur » Wed Apr 24, 2013 6:56 am

Converted all text and outlines to path, this should work.
However there are some "sans" font styles defined in the codes, for a clipping.
Attachments
controlpanel_clean4.svg
(50.29 KiB) Downloaded 139 times

User avatar
druban
Posts: 1917
Joined: Fri Nov 20, 2009 10:48 pm

Re: font in svg but there is nothing there (bug?)

Postby druban » Wed Apr 24, 2013 8:16 am

a
Last edited by druban on Wed May 29, 2013 7:51 pm, edited 1 time in total.
Your mind is what you think it is.

neilw
Posts: 32
Joined: Sat Oct 13, 2012 2:00 am

Re: font in svg but there is nothing there (bug?)

Postby neilw » Thu Apr 25, 2013 12:20 am

Thanks, very much appreciated. I'll try it tonight when I get home. Is this a bug not removing the font?

The only reason I ask about the faulit is my friend got the error using a Mac and if I send it to the printers as PDF they might get the same error and it might barf the printing or they might refuse to print it.

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: font in svg but there is nothing there (bug?)

Postby Lazur » Thu Apr 25, 2013 12:28 am

Just convert the text to path.

neilw
Posts: 32
Joined: Sat Oct 13, 2012 2:00 am

Re: font in svg but there is nothing there (bug?)

Postby neilw » Thu Apr 25, 2013 6:08 am

Thanks Druban, they look excellent. For your reference the text was white with a 30% opacity to make it look dark grey. But what's wrong with the file, there are no layers and when I do a paste in place everything is placed below this image?

objects with a fill of ffffff should be white
It is meant to look like this, there are no fonts everything was object to path (I didn't know the difference between that and stroke to path so picked one at random):
controlpanel_clean.png
controlpanel_clean.png (85.05 KiB) Viewed 1868 times

User avatar
druban
Posts: 1917
Joined: Fri Nov 20, 2009 10:48 pm

Re: font in svg but there is nothing there (bug?)

Postby druban » Thu Apr 25, 2013 7:05 am

s
Last edited by druban on Wed May 29, 2013 7:51 pm, edited 4 times in total.
Your mind is what you think it is.

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: font in svg but there is nothing there (bug?)

Postby Lazur » Thu Apr 25, 2013 7:40 am

Here is your image with text turned to paths, with no outlines but fill, with no opacity but opaque colours and with proper clipping, not with that black outline-thingy on top.
Attachments
controlpanel_clean6.svg
(51.33 KiB) Downloaded 187 times

neilw
Posts: 32
Joined: Sat Oct 13, 2012 2:00 am

Re: font in svg but there is nothing there (bug?)

Postby neilw » Thu Apr 25, 2013 7:48 am

That's brilliant, thanks, you've all been a great help. You've saved me a bit more time still as I realised when outputting to PDF it lost all the opacity settings for the letters and turned them white :)

Here's a picture of my final output to the printers, I'll post a picture when it's all done if anyone's interested.
full cabinet2.png
full cabinet2.png (228.07 KiB) Viewed 1848 times


Oh, here's the marquee that I also got some help from at this website.

marquee.png
marquee.png (20.6 KiB) Viewed 1846 times


Return to “Help with using Inkscape”