So following videos here at css tricks I decided to try out icon fonts, everything is good, but for some reason they are not working in firefox. I got custom fonts from icomoon app.
What Josh said, but also, I've had a situation where I had to run an IcoMoon export through Font Squirrel (http://www.fontsquirrel.com/) to get it to work in Firefox as well. So try that if you're font is actually local and not working.
I ran into this same issue, and this fix only worked on FontSquirrel's Basic settings (ie this setting: 'Straight conversion with minimal processing.'). Optimal and Expert processing gave me back empty files. Hopefully this saves future searchers some time.
So following videos here at css tricks I decided to try out icon fonts, everything is good, but for some reason they are not working in firefox. I got custom fonts from icomoon app.
Here is what I do to on my page:
I don't see why this is not working in firefox, instead of icon I'm just getting a value which is in data-icon attribute of span, in this case "1"
See: this link and this link
And long story short, add this to your .htaccess:
Though I would recommend setting that to your domain, instead of an asterisk. Just to be safe.
What Josh said, but also, I've had a situation where I had to run an IcoMoon export through Font Squirrel (http://www.fontsquirrel.com/) to get it to work in Firefox as well. So try that if you're font is actually local and not working.
Thanks, for some reason just running fonts through font squirrel solved the problem.
I ran into this same issue, and this fix only worked on FontSquirrel's Basic settings (ie this setting: 'Straight conversion with minimal processing.'). Optimal and Expert processing gave me back empty files. Hopefully this saves future searchers some time.
But, it works! Thanks for the advice.