Loading

@font-face not working on firefox

The following code doesn't work for firefox even though opera, safari, and ie seem to be all working just fine with this:

@font-face {
font-family: 'OverlockBoldItalic';
src: url('Overlock-BoldItalic-OTF-webfont.eot');
src: url('Overlock-BoldItalic-OTF-webfont.eot?#iefix') format('embedded-opentype'),
url('Overlock-BoldItalic-OTF-webfont.woff') format('woff'),
url('Overlock-BoldItalic-OTF-webfont.ttf') format('truetype'),
url('Overlock-BoldItalic-OTF-webfont.svg#OverlockBoldItalic') format('svg');
font-weight: normal;
font-style: normal; }

i'd appreciate if anybody can troubleshoot. All the font files in those formats are uploaded under the site's NB account. 

Official response from Jesse Haff

You might try some of the suggestions in this Stack Overflow thread where someone is having a similar problem. 

NationBuilder integrates with Typekit so you can bypass the headache often associated with getting @font-face to work perfectly. You can browse for a font similar to the one you are trying to use here.

You can also try Google web fonts which works well and is very easy to install in NationBuilder. Make sure to use the javascript embed method so it works on your secure pages too.

How would you tag this suggestion?
Do you like this suggestion?

Showing 12 reactions


Jesse Haff responded 2012-05-31 08:55:40 -0700
Marjorie Roswell commented 2012-05-31 06:42:19 -0700 · Flag
Alas/darn, the “similar font” resource doesn’t really let you look up your font (in my case: FrancoisOneRegular ) and find an alternative in TypeKit. It looks like you just have to eyeball it. Given that the problem with @font-face seems to be cross domain linking, would there be any way to upload our fonts so that they’re in the same domain?
Marjorie Roswell commented 2012-05-31 06:32:16 -0700 · Flag
In essence, @font-face doesn’t appear to work with NationBuilder. (It works locally, just not live on NationBuilder in certain browsers.) The similar font resource is helpful—thanks for sharing it. Can you provide some documentation/guidance on how to use Typekit? Even better if @font-face worked, certainly less hassle for my current project. I wonder if this might help resolve the font issue on NB: http://www.fontsquirrel.com/blog/2010/11/troubleshooting-font-face-problems
Tsuyoshi Orihashi commented 2012-05-29 01:15:23 -0700 · Flag
Finally I found a solution that doesn’t involve .htaccess

Replace

url(‘Overlock-BoldItalic-OTF-webfont.woff’) format(‘woff’),

with

url(data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAA… (omitted) …a6YAAA==) format(‘woff’),

And keep the rest the same.
I succeed in one point and failed on the other point. im still attempting to figure out what causes a success or a failure. Haven’t found it yet.
Tsuyoshi Orihashi commented 2012-05-28 23:48:09 -0700 · Flag
I tried to embed the font subset file inside the CSS as follows (generated by Font Squirrel, Base64 Encode)

src: url(data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAA… (omitted) …a6YAAA==) format(‘woff’),

didn’t succeed in the FireFox. This only leave the possibility that FireFox doesn’t allow cross domain linking so far.
Tsuyoshi Orihashi commented 2012-05-20 13:36:52 -0700 · Flag
Thank y’all for your attention and kind advices and references! Comparing pages with Typekit and @font-face, Typekit does include all font data inside the CSS instead of linking them. I’ll try the same later!
Tsuyoshi Orihashi tagged this with Answered 2012-05-20 13:35:14 -0700
Tsuyoshi Orihashi tagged this with Helpful 2012-05-20 13:35:14 -0700
Lilia Villa tagged this with Answered 2012-05-15 09:16:57 -0700
Marius Kubilius commented 2012-05-03 02:42:29 -0700 · Flag
The issue may be mostly due to firefox not allowing cross domain linking I believe
Jesse Haff responded 2012-03-27 08:43:54 -0700

The following code doesn't work for firefox even though opera, safari, and ie seem to be all working just fine with this:

@font-face {
font-family: 'OverlockBoldItalic';
src: url('Overlock-BoldItalic-OTF-webfont.eot');
src: url('Overlock-BoldItalic-OTF-webfont.eot?#iefix') format('embedded-opentype'),
url('Overlock-BoldItalic-OTF-webfont.woff') format('woff'),
url('Overlock-BoldItalic-OTF-webfont.ttf') format('truetype'),
url('Overlock-BoldItalic-OTF-webfont.svg#OverlockBoldItalic') format('svg');
font-weight: normal;
font-style: normal; }

i'd appreciate if anybody can troubleshoot. All the font files in those formats are uploaded under the site's NB account.Â