thoitaxh: (Default)
Taxh ([personal profile] thoitaxh) wrote in [community profile] style_system2012-05-07 11:59 pm

@font-face browser compatibility issues

Hey! So it's me again. I've got a promblem with my @font-face tag that for some reason isn't showing up in Firefox. Works in Chrome with no issues at all, but Firefox keeps defaulting to my back-up fonts.

How it looks in Chrome/How I want it to look

How it looks in Firefox



I'd be super grateful for any help at all!
caltastic: <u>The Cookie Tree</u>, by Jay Williams (Default)

[personal profile] caltastic 2012-05-07 11:40 pm (UTC)(link)
I'm not sure if this is your problem, but you're calling a sourced TTF as type=opentype instead of type=truetype.
carene_waterman: An image of the Carina Nebula (Default)

[personal profile] carene_waterman 2012-05-11 01:37 pm (UTC)(link)
It's not a bug, it's a feature.

Firefox has a security feature that does not allow font files to be called from a different domain from the one that hosts the site and the CSS files. It's meant to stop people using fonts they don't have a license for and for other security reasons.

There are workarounds, but so far, I can't find one that will work without control of the server where the font is located. I did see one guy say that he just changed the URL so there was no http:// and it worked for him, but I haven't had time to test that theory, so take that with a giant grain of salt, but it might be worth a try.