Serving web fonts from IIS | Seb Duggan

Edit
Working on a HTML5 projects that web fonts is used. There is always an error saying the font file could not be transfer I saw from the debug console. After some reading, it is the web server IIS which didn't recognize/allow the request of the file with extension .woff , after adding proper MIME types in IIS, the web fonts file error is gone!


By default, the MIME types in IIS 6 are configured to deliver EOT (as used by IE) and TTF files. But WOFF (Firefox) and SVG (iPhone, iPad & others) will not be served.

Simply add the following MIME type declarations via IIS Manager (HTTP Headers tab of website properties):
1.woff  application/x-woff  .svg   image/svg+xml
…and everything should work fine.
Serving web fonts from IIS | Seb Duggan Serving web fonts from IIS | Seb Duggan Reviewed by DF on 5:26:00 PM Rating: 5

Post Comments

©DF. Powered by Blogger.