Font awesome icon

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
laros
 
 
Posts: 128
Joined: Thu Jul 05, 2018 5:50 pm

Font awesome icon

Post by laros »

Hello,

What is the difference between "svg" and "font" as an output format at font awesome icon?

Thank you!

Best regards
User avatar
Bluesman
 
 
Posts: 1119
Joined: Mon Feb 01, 2016 5:43 pm
Location: Sweden
Contact:

Re: Font awesome icon

Post by Bluesman »

Hi laros. SVG is a vectorized object/picture and do not nead any font downloaded, just the .svg file. Font awesome is a font file with all library and is much heavier and nead the fontfiles downloaded, if you use font awesome the fontfiles will be downloaded automatic with the project.
"Make My Day"

See my Website
laros
 
 
Posts: 128
Joined: Thu Jul 05, 2018 5:50 pm

Re: Font awesome icon

Post by laros »

What would you suggest me to do, use the output format "svg" or "font"?

I have font awesome icons for menu icons and for facebook and twitter icons?

thank you!
User avatar
Bluesman
 
 
Posts: 1119
Joined: Mon Feb 01, 2016 5:43 pm
Location: Sweden
Contact:

Re: Font awesome icon

Post by Bluesman »

laros wrote: Mon Sep 16, 2019 7:37 pm What would you suggest me to do, use the output format "svg" or "font"?

I have font awesome icons for menu icons and for facebook and twitter icons?

thank you!
Depends some how the status of the site weight (size mb) is. If you have a lot of installed fonts, photos and graphics that make the site very heavy and you want it to load as fast as possible... convert to .svg.
If the site is quite small and not so heavy, use the Font Awesome.
"Make My Day"

See my Website
User avatar
gofrank
 
 
Posts: 181
Joined: Sun Dec 30, 2007 2:43 am
Location: Florida, USA

Re: Font awesome icon

Post by gofrank »

Note that some older browsers do not support .svg.
Billing clients for your freelance work? Try Minute-2-Minute, the project management, timing, and billing system. Perfect for web developers who charge by the hour. FREE 45-day trial.
heynen
 
 
Posts: 129
Joined: Sun Dec 31, 2017 4:27 pm

Re: Font awesome icon

Post by heynen »

I want to use a Font Awesome Icon, as a single .svg file that I put on my server.

So far, it does not work:

I have used "font awesome icon" from the toolbox, chosen the "paper plane solid" icon, and then the "publish as svg" option.

WWB did not output an .svg-file itself. So I tried putting the "paper-plane-solid.svg" to the root directory of my website, but this did not work.

What am I doing wrong?
User avatar
crispy68
 
 
Posts: 2750
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: Font awesome icon

Post by crispy68 »

I believe the .svg is encoded into the html code inline and not saved as an image. Do a simple test...blank project, insert icon, set it to publish as an .svg and then preview. Look at the source code and you will see the svg code in the html.
heynen
 
 
Posts: 129
Joined: Sun Dec 31, 2017 4:27 pm

Re: Font awesome icon

Post by heynen »

thanks already, I will check!

Now, at startup, I am getting "missing ttf file Font Awesome".
How can I fix that? I have reinstalled WWB, but that did not help.
User avatar
Pablo
 
Posts: 21715
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Font awesome icon

Post by Pablo »

Maybe you have changed the system folder?

Related FAQ:
http://www.wysiwygwebbuilder.com/forum/ ... 10&t=76719
heynen
 
 
Posts: 129
Joined: Sun Dec 31, 2017 4:27 pm

Re: Font awesome icon

Post by heynen »

Thanks! That hint solved the problem! The system folder was at the right place, but I had manually created a subfolder called "FontAwesome", and the program was probably searching for the TTF-file inside that folder. Folder deleted = error message gone.

I am still not sure how to solve my original problem:

When I choose "publish as font", the symbol is displayed correctly, but have these huge font files on my web server (and I only need 5 symbols)
When I choose "publish as SVG", the "padding" around the symbols does not work. So if I activate the "border" around the symbol, there is no space between symbol and border. If you want to have a look: https://www.freiblatt.de/test/index.php, at the very bottom of the page.

In the source code of the page, I see the following (that is for the tea cup symbol).

Code: Select all

<svg id="FontAwesomeIcon5" height="100%" width="100%" viewBox="0 0 18 18" version="1.1" xmlns="http://www.w3.org/2000/svg">
   <g transform="scale(0.01)">
   <path transform="rotate(180) scale(-1,1) translate(0,-1536)" d="M1664 896q0 80 -56 136t-136 56h-64v-384h64q80 0 136 56t56 136zM0 128h1792q0 -106 -75 -181t-181 -75h-1280q-106 0 -181 75t-75 181zM1856 896q0 -159 -112.5 -271.5t-271.5 -112.5h-64v-32q0 -92 -66 -158t-158 -66h-704q-92 0 -158 66t-66 158v736q0 26 19 45t45 19h1152q159 0 271.5 -112.5t112.5 -271.5z"></path>
   </g>
</svg>
User avatar
crispy68
 
 
Posts: 2750
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: Font awesome icon

Post by crispy68 »

Yes, it does look like the padding is not taken in account when saving as a .svg. Not sure if a bug or just no possible. So if you need the border and padding, do it as a font. IMHO, based on your page, it will not take that long to load the font file and once loaded will reside in the users cache for other pages.
Post Reply