views:

632

answers:

3

What mime type should WOFF fonts be served as?

I am serving truetype (ttf) fonts as font/truetype and opentype (otf) as font/opentype, but I cannot find the correct format for WOFF fonts.

I have tried font/woff, font/webopen, and font/webopentype, but Chrome still complains:

"Resource interpreted as font but transferred with MIME type application/octet-stream."

Anybody know?

A: 

Maybe this will help you:

Serving web fonts from IIS

@font-face {
font-family: 'VegurRegular';
src: url('Vegur-R_0500.eot');
src: local('Vegur'),
     local('Vegur-Regular'),
     url('Vegur-R_0500.woff') format('woff'),
     url('Vegur-R_0500.ttf') format('truetype'),
     url('Vegur-R_0500.svg#Vegur-Regular') format('svg');

}

Frederic Bartl
OP's server might be sending `.woff` files as some different kind of MIME type, hence the question, so CSS might not be able to help with this.
BoltClock
+3  A: 

@Nico,

Currently there is no defined standard for the woff font mime type. I use a font delivery cdn service and it uses font/woff and I get the same warning in chrome.

Reference: The Internet Assigned Numbers Authority

Chris_O
+2  A: 

WOFF - 1.Web Open Font Format 3.it can be compiled with either TrueType or PostScript (CFF) outlines 4. It is currently supported by FireFox 3.6+

Try to add that:

AddType application/vnd.ms-fontobject .eot AddType application/octet-stream .otf .ttf

AdalArasan