Developer forum

Forum » Templates » Embedded font problems in Firefox

Embedded font problems in Firefox

Morten Vallentin
Reply
We seem to have some trouble regarding rendering embedded fonts in Firefox.
Does anyone have a workaround to make externally hosted fonts (.ttf, .eot, .woff) work in this browser?
It works fine everywhere else but in Firefox (both mac & pc).

I've been thinking that it might have something to do with the server header setting "Access-Control-Allow-Origin".
If this is set to "*" or even just the domain of the DW solution that might solve the problem.

Problem is that I am not sure if thats it.
Does anyone know the solution to that problem?
We're in a bit of a rut and hope someone can give a hint quickly.

Here an example of one of our fonts (i've anonymised it):

@font-face {
  font-family: '[fontname]';
  src: url('http://[typeserver].com/[folder]/[font]-webfont.eot');
  src: url('http://[typeserver].com/[folder]/[font]-webfont.eot?#iefix') format('embedded-opentype'),
         url('http://[typeserver].com/[folder]/[font]-webfont.woff') format('woff'),
         url('http://[typeserver].com/[folder]/[font]-webfont.ttf') format('truetype'),
         url('http://[typeserver].com/[folder]/[font]-webfont.svg#[font]') format('svg');
  font-weight: normal;
  font-style: normal;
}


Replies

 
Nicolai Høeg Pedersen
Reply
Hi Morten

I've used fonts like this many times, without experiencing problems in Firefox. Can you by any chance link to the website?

 
Morten Vallentin
Reply
This post has been marked as an answer
Hey Nicolai,
Everything is working now.
We ended up generating our own versions of the eot, woff, svg etc. on http://www.fontsquirrel.com/fontface/generator and stored them locally on the DW solution, plus we had the file extension .woff added to the IIS.

As long as everything is local with Firefox no hell breaks loose.
I guess we will just have to avoid externally hosted fonts in the future until Firefox starts behaving.

Thanks for replying to our post.
Votes for this answer: 0

 

You must be logged in to post in the forum