@font face not working in firefox
I'm using CSS3 font-face on my website. Strangely it works when it is tested on a localhost but when it goes live it doesn't show in firefox. Below is the code and I even created a htaccess with the below mod in the font folder but it still doesn't work. Anyone can help?
src: url("testfont.woff") format('woff'),
src: url("testfont.ttf") format ('truetype'),
src: url("testfont.eot") format ('eot')}
Header set Access-Control-Allow-Origin "*"
Your fall-through order is out of order, and you really should include weight and style or it WILL be ignored in some browsers.
That order IS important, as is the 'double target' for IE. Also, your weight and style MUST match when you use it -- a limitation of webfonts is you can't auto-bold or auto-italic in all browsers. Which is why you can do multiple @font-face with the same font-family declaration, but different font-weight or font-style.
src: url('testfont.eot?#iefix') format('embedded-opentype'),
No clue why you think you need to screw with the headers for them though... That whole "filesmatch" rule nonsense shouldn't be necessary at all unless you've got something else really jacktarded going on with the server.
Last edited by deathshadow; 05-22-2014 at 02:53 AM.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)