@font-face not working in Firefox live (but working locally)
-
To make a long story short, I’m having trouble getting @font-face CSS declarations to work on my live site in Firefox (and IE9, apparently). But things work just fine locally.
Here’s the site:
http://www.blackmountainsoftware.comHere’s the situation:
Client is hosting WordPress on their own servers, against our advice. That has caused a slew of other problems and may factor in here.I’m embedding the font, just as I always have, using the following code, following the advice listed here:
@font-face { font-family: 'ChunkFiveRegular'; src: url('fonts/Chunkfive-webfont.eot'); src: url('fonts/Chunkfive-webfont.eot?#iefix') format('embedded-opentype'), url('fonts/Chunkfive-webfont.woff') format('woff'), url('fonts/Chunkfive-webfont.ttf') format('truetype'), url('fonts/Chunkfive-webfont.svg#ChunkFiveRegular') format('svg'); font-weight: normal; font-style: normal; } h1, h2, h3 { font-family: "ChunkFiveRegular", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif; }
Before we were having issues with Firefox not loading the font files, but that turned out to be some kind of MIME type issue that their IT guy fixed. Now, however, using Firebug, I can see that the font files are definitely being loaded, but not being displayed. Any text that references the @font-face style blanks on first load and then just loads the default font.
I thought it may have been their server (after the MIME type issues), so I created a test page (located HERE) with just the bare minimum of stuff on it to test and see if the fonts would display. Somehow, they do, so it appears to be a WordPress issue. Although, I don’t know what to do about it because it’s the same way that I’ve always used @font-face, just on a client’s server rather than a legitimate host.
Does anybody have any suggestion as to what’s going on here. I’d be happy to provide more code if that helps, but I have no idea what else could be affecting it.
- The topic ‘@font-face not working in Firefox live (but working locally)’ is closed to new replies.