How to set MIME types for web fonts in IIS?

Font Squirrel's @Font-face generator is one of the best free online tools to generate required font files and CSS rules. This tool allows you to upload your custom font files and download back the CSS rules along with necessary cross-browser compatible font formats. A typical @font-face declaration includes files like .eot, .woff, .ttf, and .svg. You may need to add following MIME types in IIS manager to serve this file types.

 

.eot   application/vnd.ms-fontobject
.ttf    application/octet-stream
.svg   image/svg+xml
.woff   application/font-woff
.woff2  application/font-woff2

 

  1. Open IIS Manager  (Start >> Run >> type inetmgr hit enter).

  2. Select the root node from the connections pane. Double-click MIME Types from features pane.

    MIME Type

  3. Click on Add link in the Actions pane. This will bring up the dialog box. Enter file extensions, specify corresponding MIME type and click on OK button.

    Add MIME Type


  • 0 Users Found This Useful

Was this answer helpful?

Related Articles

FIX :: .inc include files not loading in ASP .NET website

Sometimes, your website doesn't load .inc files like footer.inc of your ASP .net website.The .inc...

How to create an FTP account from IIS in Windows Server 2003?

This article will guide you on how to create an FTP account in Windows Server 2003 from IIS. For...

How to import SSL certificate in Windows server?

To import SSL Certificate in Windows Server, firstly, you need to export the SSL certificate....

How to deny URL sequence from IIS?

Request Filtering is a built-in security feature of IIS. Using Request Filtering feature one can...

Fix :: Operation must use an updateable query." for ASP pages

Problem Statement Operation must use an updateable query." for ASP pages Cause There might be...