[SOLVED] @font-face is not working at all in FF5 in XP
I have a website that I serve over the local LAN. As of FF4, as far as I can tell, my @font-face declarations were working fine. (the site is also served by a commercial server to the Internet, I serve the "testbed" version to the LAN because it also has intranet features)
The site, either via LAN or the commercial host works just fine in FF5 for Linux. (all other browsers seem to work fine in XP, so this is isolated to the XP version of FF5) But the font-declarations do not work for either method of serving the site for FF5 in XP. In one case - the commercial host, the site does work IF the font files are already installed on the local system. (meaning the font declarations are working but not @font-face rule.) However, even the font declarations don't work when served over the LAN via an IP address.
Any ideas or suggestions are greatly appreciated.
Modified
All Replies (5)
Thanks, but those pages don't help me. I already am familiar with that material.
My declarations are set up properly. They worked just moments before the FF5 upgrade under FF4. The only thing that changed is FF was upgraded from 4 to 5. The problem is not with my code. The problem is with FF, and then only the Win XP version as the Linux version (as well as all other major browsers on both platforms, as well as Mac) have no problem.
This is a breakage in FF5 for WinXP. Perhaps there is a reason why, but that's what I'm trying to find out.
My code is standards compliant. If FF5 is implementing the spec, then there should be no issue. As it is, as I noted, it works just fine on FF5 for Linux and Mac, just not FF5 for XP.
Does Firefox use that font if you install it locally on that computer in the appropriate .fonts/ sub folder?
You can try to check with the Live HTTP Headers extension if Firefox is downloading the font.
Also make sure that downloading fonts is enabled by verifying that the pref gfx.downloadable_fonts.enabled is true on the about:config page.
Thanks cor-el, while this didn't actually solve the problem, it led me to the solution.
It appears that the upgrade to FF5 wasn't the only change - NoScript also updated as well. (sorry, I forgot to check this issue in safe-mode) It seems that when NoScript updated itself, it also came with "Forbid @font-face" checked in the Embeddings tab, therefore my fonts would not load. Odd enough though, this also prevented the local fonts from being used when their declaration was encountered. I'll have to take that up with the NoScript developers.
So this was isolated to FF5 on XP, but not because of either one, but because the new NoScript that is compatible with FF5 has @font-face disabled by default, and because the XP machines are the only ones I have NoScript installed. (I don't use it on my Linux systems) So that's why it appeared to be FF5 XP specific.
Thanks for the help.
You're welcome.