1

Edit: solved, see answer below.

I am using several JavaScript-libraries (some of them come with CSS and web fonts) along with Font Awesome. FA is installed locally via Bower, so there are no attempts to cross-site requests made.

Everything works fine in Chrome and IE, but on Firefox there are some icons (fa-user-secret and fa-archive) that are not displayed correctly. They show as some other characters (probably Asian, no idea which language) instead. Most other icons such as fa-user work without problem.

My theory is that there is a collision between FA and some CSS and/or web fonts from one of the other libraries. Perhaps an older FA with the affected icons gets loaded instead of the new FA version. I'm e.g. using dbootstrap (a Bootstrap theme for Dojo) which comes with its own FA - which is prefixed with "icon-" instead of "fa-". Deactivating dbootstrap does not solve the problem.

An example snippet that does not work:

    <i class="fa fa-archive"></i>

An example that works:

    <i class="fa fa-user"></i>

The problem really only appears on Firefox.

I've tried to deactive some other libs and CSS but got stuck in the process.

What is the recommended way to debug such problems?

Hannes Ebner
  • 11
  • 1
  • 4

5 Answers5

1

Check the gfx.downloadable_fonts.enabled pref on the about:config page is set to true (if necessary double-click the line to toggle its value).

Make sure that you allow pages to choose their own fonts.

Tools > Options > Content : Fonts & Colors > Advanced: [X] "Allow pages to choose their own fonts, instead of my selections above"

0

Try installing firebug extension on the faulty web browser or use the in built application console and check if the web browser status for the file is 200 OK , also check your application character enconding it should be UTF-8, if that doesn't work then your html markup code is my next bet, go through font awesome docs files and check if you properly implemented it.

  • I don't see any errors in Firebug, encoding seems to be correct too. Please not that fa-user works while fa-user-secret doesn't. – Hannes Ebner Mar 19 '15 at 09:45
0

If only some icons are not showing most probably is that you are using a version of fontawesome that deos not contain those icons.

Have you checked if the loaded fontawesome css in Firefox includes the missing icons?

I know that you can see them in IE and Chrome but that may be due to caching...

Eduardo Ramos
  • 416
  • 3
  • 8
  • Yes, checked for that. I am installing FA 4.3.0 via Bower and always test after emptying the browser cache. – Hannes Ebner Mar 19 '15 at 09:52
  • Could you post the simplest HTML that fails so we can have a look at it? I guess you have tried a plain HTML file with just those two elements to see if it is not a problem of your firefox version/installation... – Eduardo Ramos Mar 19 '15 at 10:35
0

I found the problem, it was dbootstrap (Bootstrap theme for Dojo) after all. It comes with its own (older) copy of Font Awesome and redefined the font-face FontAwesome in its own CSS.

For some reason this problem only appears on Firefox, probably the load order of CSS and web fonts is slightly different. I removed FA from dbootstrap and now FA works as expected in FA.

Hannes Ebner
  • 11
  • 1
  • 4
0

In my case, just some of the icons were blocked by uBlock Origin, which is still a bit surprising to me -- so it's worth trying to see whether deactivating relevant add-ons can solve the issue.

Martin R.
  • 1,554
  • 17
  • 16