Sorry, I can see that this has been asked a few times now but I have tried a lot of possible solutions and checked everything is correct, which I am sure it is, and yet in Firefox my css declaration is reverting to the 2nd font in the list rather than using the @font-face font. I am not entirely sure how to check the font is being loaded or if there are any issues through Firebug, otherwise that would be my next step.
Can anyone see why please:
The site in question is www.jondell.co.uk and it is the text next to the phone, info and facebook icons toward the bottom of the page
The fonts are stored in a folder called fonts (all lower case) and this folder is in the same folder as the stylesheet (this is a Wordpress site so both are in the theme folder)
My CSS for the font declaration and where I use it is:
The fonts are all uploaded to the server and I have just re-created them at Font Squirrel to be sure (the font is from there anyway so no issues with usage).
Thank you. I have run in Firebug and I can see it works (well it is the correct font now anyway, even if in bold) but if I add to my stylesheet and upload to the server it is making no difference.
I have already read through those posts and am sure I have tried everything suggested before I posted myself - or am I missing something (i.e. which bit should I be trying from the thread)?
Ignore this, I have found the post in the thread now.
I have tried this before but will do so again now that I have altered the stylesheet as you suggested and see if it works.
It looks like your web server (Apache 2) isn’t sending a Content-Type for the .woff file, which causes FF not to recognise it as a font and causes it to ignore the file.
To instruct Apache to send the correct header, put the following in an .htaccess file (if you don’t know what that is, google it :))
In case anyone is interested I have finally ( after hours of more research, fiddling and testing) found a way to resolve this issue which stems from the url generated by the generic Wordpress stylesheet link
What I have done is created a separate stylesheet in the fonts folder called typography.css and moved the font declarations to there (removing them from my main stylesheet). I have then linked directly to that stylesheet from the header.php file in my WP theme using a full URL (though this seems a contradiction to everything I have read about FF not liking absolute URL’s) like this:
Glad you found a solution, chilli11, and thanks for posting it here. This kind of thread comes up fairly often, so this will probably be of great help to others who follow.