-
Notifications
You must be signed in to change notification settings - Fork 12.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with "all.css" and "font-family: 'Font Awesome\ 5 Free'" on Chrome and Firefox #11946
Comments
Hi! Thanks for being part of the Font Awesome Community. The new version of Font Awesome also requires Fiddle: https://jsfiddle.net/tagliala/tgzouajm/12/ The unicode entrypoint Fiddle: https://jsfiddle.net/tagliala/tgzouajm/13/ I will also add an entry in the troubleshooting guide Hope it helps Closing here |
Thank you! You solved me a big headache :) |
That seems to be inconsistent though or am I missing something? Some icons work without having font-weight 900 while others won't - both from the free solid styles as far as I can see. |
@exp0sure74 all FA5 Free icons must be available for the solid style ( A lot of icons are available in both solid and regular styles Please check on the documentation: https://fontawesome.com/icons?d=gallery
https://fontawesome.com/icons/caret-square-right?style=regular f152 is available for free users in both solid and regular styles https://fontawesome.com/icons/external-link-alt?style=solid f352 isn't (please notiche the PRO label on the regular icon) |
I am having the same issue of the original post from @delitestudio even after adding font-weight: 900.
http://dusano.levitica.ca/Test/test3
I even added this script I found in the docs:
What is still missing? |
@stesvis you are mixing usages
please take another look at the docs SVG: https://fontawesome.com/how-to-use/svg-with-js#pseudo-elements |
too much confusing on your documentation and missing information, one needs to ask, please include stuff in your doc |
Hi @mtrabelsi could you please clarify? Where the documentation is confusing? Where the information is missing? |
in your guide for upgrading from 4 to 5 ( https://fontawesome.com/how-to-use/upgrading-from-4#icon-name-changes-complete-list) there is no mention to font-family needs to be changed as well:
which make it looks like nothing to be changed there |
@mtrabelsi thanks, got it. Since this lack in documentation in upgrading has already been reported, I will open a new issue in our private repo |
Add below css |
Hi, I am using Shopline theme with FA5 for WordPress and I have tried to put the fas fa-box icon in a page but this doesn't work. I have tried with What is the issue? (I haven't found a solution in the troubleshooter) Thank you! |
@vladutilie sorry but we do not provide support for third party plugins. If you provide a reproducible test case, I will take a look. Please note that So please make sure that your theme is using FA >= 5.0.7 |
Hi, I've followed all the cases you showed but I'm still having some problems with the "\f57d" code. It doesn't appear. Could anyone give me a hand on this? |
I've fixed display issues by adding this to my css when I am using any of the FA icons that are solid. .fas { EDIT: Without using both of those declarations in the font-family it broke on chrome. This way so far has worked on all browsers. This fixed the icons not displaying in FF and EDGE. I've also experienced this when using the brand icons and the all.min.css file you have to specify the font family "Font Awesome 5 Free Brands". Hope this helps someone. |
Many thanks for your answer manBearCat. I didn't find a solution and just change the code. Regards. |
that line is important "font-weight: 900;" |
Note that if you use just one (ie. solid) of the font types, you must include fontawesome.css (or fontawesome.min.css of course):
Source: https://fontawesome.com/how-to-use/on-the-web/setup/hosting-font-awesome-yourself |
Hi, |
Hi, I have a problem I try show this ico. It is my code.
.fa-wpforms:before { Thanks. |
Hi @manolog2f, please note that wpforms is a Brand icon, so its proper font-family name is Also, the font weight should be set to normal (400) Please take a look at our documentation: https://fontawesome.com/how-to-use/on-the-web/advanced/css-pseudo-elements#how-they-work |
thanks @manBearCat, that totally saved me an endless headache! |
Hi I'm currently trying to use Font Awesome Brand icons and can't seem to get them working on Chrome. I got the other icons to work except the brands. What am I missing here? I appreciate any input Browser: Source: https://codepen.io/rmfranciacastillo/pen/YbEgvG?editors=0100 SASS source
|
The proper Fixed pen: https://codepen.io/tagliala/pen/GaQNbV?editors=0100 Hope it helps |
I came around from Google and this solved my problem... thank you! |
Hi @Hainaa Could you please open a new issue by filling out our bug report template? Please provide all the information you can. A reproducible test case would be better |
Found out what was happening, it was an issue with how I was preloading content. |
Hi, I have installed font awesome using npm command npm i -D @fortawesome/fontawesome-free. Then I try to import it in my scss file in 2 ways. @import '@fortawesome/fontawesome-free/css/all'; after this I'm only getting blank squares instead of my icons. I'm using font awesome in my scss files like
also I'm using it in my html comment and I tried also to replace fa with fas or fab and none of these is working. When I use CDN everything is working as expected. any advice? |
Since there are several ways of including Font Awesome in a web application via npm, please open a new issue by filling out our bug report template and provide a reproducible test case. Since you are probably hosting the font files yourself, please check that your style as well ass your webfont are being copied by your build system I have set up a fast configuration with parcel and I've included the stylesheet from |
Hi, I'm developing a simple app in Electron.js and I get blank squares when using this code:
This is the HTML:
I already checked they had the proper font-family and font-weight. |
Hi @Dasapugo4444, please open a new issue by filling out our bug report template In this case, please provide how you are loading Font Awesome and a reproducible test case would be very appreciated |
use this in HTML to get rid of the box on chrome. I was having the issue and tried font-family: 'Font Awesome 5 Pro' Even on the free version if you write font awesome pro then your unicode will work. |
Hello @tagliala, I hope you are doing well, Quick question - I am running on this issue when I am trying to uses free bran icons. The icon works but doesn't show or can't see it. I tried to look everywhere for an answer but can't any yet.
I can see the letters but not icons. Thanking you in advance for your help |
Hi @AJVA2580 Please open a new bug report template and provide a reproducible test case |
Well, after 4 four days investigation and pulling my hair furiously, at last i have seen your reply. :D Thanks |
On our website cuneotrekking.com we've included:
<link rel='stylesheet' id='fontawesome-css' href='https://use.fontawesome.com/releases/v5.0.1/css/all.css?ver=4.9.1' type='text/css' media='all' />
then we wrote this CSS:
On Safari everything is perfect:
On Chrome and Firefox, instead of the icon, a square appear:
If, instead of the icon \f30c, we use another code, for example \f005, it also works on Chrome and Firefox:
Does it seem that the CSS all.css does not include everything? Or should we use another font-family?
The text was updated successfully, but these errors were encountered: