Firefox cannot render icons from Font Awesome webfont set
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Industries in Orbit Looping
--
Chapters
00:00 Firefox Cannot Render Icons From Font Awesome Webfont Set
01:38 Accepted Answer Score 12
02:46 Answer 2 Score 1
03:07 Answer 3 Score 0
03:24 Thank you
--
Full question
https://superuser.com/questions/446001/f...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#firefox #fonts
#avk47
ACCEPTED ANSWER
Score 12
The problem described in the question was fixed by Khan Academy by changing all the paths from ./
to /fonts/
(for example ./fontawesome-webfont.ttf
changes to /fonts/fontawesome-webfont.ttf
). It seems to me that Firefox is unable to read files from the special "dot" directory (which simply refers to the current directory).
PS: The lack of semicolon in the CSS after the last attribute does not cause this problem.
Additional comments:
Your edit about the
.
prefix is a server issue, not how Firefox handles files. KA were referencing the font files from the wrong location – random
Incorrect! The fonts worked correctly in three other browsers as I had already mentioned in question long ago, which means the fonts were in the correct location. It was clearly Firefox's problem with the ./
path as I explained, which forced KA to move the font files to a new location that doesn't need ./
, allowing Firefox to also read the font files correctly. Therefore it is an issue of how Firefox handles files.
ANSWER 2
Score 1
Probably not the answer to the posed question, but related enough to help people that end up here with a slightly different problem that produces the same result as shown in the screenshots.
Firefox blocking the use of a font that is on a different (sub-)domain
Also read the comments on that posts, they give good advice.
ANSWER 3
Score 0
I did the path changes to run IE, Firefox and Chrome correctly, as follows: (URL to see)
@font-face{
font-family:'FontAwesome';
src:url('ogi/bete/font/fontawesome-webfont.eot?v=3.0.1');
src:url('/ogi/bete/font/fontawesome-webfont.eot?#iefix&v=3.0.1') format('embedded-opentype'),
url('/ogi/bete/font/fontawesome-webfont.woff?v=3.0.1') format('woff'),
url('ogi/bete/font/fontawesome-webfont.ttf?v=3.0.1') format('truetype');
font-weight:normal;
font-style:normal }