Page 1 of 1

SVG File Confusion

Posted: Mon Nov 07, 2022 10:42 pm
by zinc
Pablo;

Is there any way for WWB to detect the difference between an SVG file and an SVG variation of a font that has an SVG extension? In the options under the "File Type Output Folder", I have assigned the SVG extension to go to the "Fonts" folder because I want all the fonts to be there, Of course I have a lot of SVG (image) documents which I want to go to "Images" folder, but they end up in the "Fonts" folder.

Can it detect the difference? Is this even possible?

Z

Re: SVG File Confusion

Posted: Mon Nov 07, 2022 10:49 pm
by Bluesman
zinc wrote: Mon Nov 07, 2022 10:42 pm Pablo;

Is there any way for WWB to detect the difference between an SVG file and an SVG variation of a font that has an SVG extension? In the options under the "File Type Output Folder", I have assigned the SVG extension to go to the "Fonts" folder because I want all the fonts to be there, Of course I have a lot of SVG (image) documents which I want to go to "Images" folder, but they end up in the "Fonts" folder.

Can it detect the difference? Is this even possible?

Z
zinc ... spot on :D I have wondered this every time I stumbled on the issue.... but forgot to ask in the forum.

But my take on it is that you probably don't nead to use svg fonts any more. Just ttf woff woff2 for fonts, but different with iconfonts I think.

Re: SVG File Confusion

Posted: Tue Nov 08, 2022 7:10 am
by Pablo
There is no easy way to detect the difference.
But why are you still using SVG fonts?

Most browsers have stopped support for it a long time ago, because these files are usually huge.
https://caniuse.com/svg-fonts

Re: SVG File Confusion

Posted: Tue Nov 08, 2022 7:21 am
by zinc
@Buesman & @Pablo - I did not know that I no longer need it. In that case I can just use these:

ttf woff woff2

?

Re: SVG File Confusion

Posted: Tue Nov 08, 2022 8:09 am
by Pablo
woff and woff2 will work in most browsers.
No, need for ttf

Re: SVG File Confusion

Posted: Tue Nov 08, 2022 8:23 am
by zinc
Pablo wrote: Tue Nov 08, 2022 8:09 am woff and woff2 will work in most browsers.
No, need for ttf
WOW! Did not know that. Thank you.

Re: SVG File Confusion

Posted: Tue Nov 08, 2022 11:40 am
by Bluesman
zinc wrote: Tue Nov 08, 2022 8:23 am
Pablo wrote: Tue Nov 08, 2022 8:09 am woff and woff2 will work in most browsers.
No, need for ttf
WOW! Did not know that. Thank you.
Now I got some confused "No need for ttf"?
I use this in the Windows OS for having in the fontlist of WWB? Can I install the woff in the Windows OS :o

Re: SVG File Confusion

Posted: Tue Nov 08, 2022 12:21 pm
by Pablo
You only need the TTF for Windows , not for the web.
So, you will need to install TTF in Windows so you can work with the font. But it's not needed for @font-face.

Re: SVG File Confusion

Posted: Tue Nov 08, 2022 4:35 pm
by zinc
@pablo what you are saying is to ignore the other formats and just add these two? See attached.

https://ibb.co/rpxrSqn

Re: SVG File Confusion

Posted: Tue Nov 08, 2022 4:37 pm
by Pablo
Correct, unless you want to support very old browsers.

Re: SVG File Confusion

Posted: Tue Nov 08, 2022 4:42 pm
by zinc
Pablo wrote: Tue Nov 08, 2022 4:37 pm Correct, unless you want to support very old browsers.
Great Thank you.

@bluesman hopefully it is clear for you too.

Re: SVG File Confusion

Posted: Tue Nov 08, 2022 5:32 pm
by Bluesman
zinc wrote: Tue Nov 08, 2022 4:42 pm
Pablo wrote: Tue Nov 08, 2022 4:37 pm Correct, unless you want to support very old browsers.
Great Thank you.

@bluesman hopefully it is clear for you too.
:lol: