Skip to content

Instantly share code, notes, and snippets.

@madaboutcode
Created August 26, 2013 08:13
Show Gist options
  • Save madaboutcode/6339118 to your computer and use it in GitHub Desktop.
Save madaboutcode/6339118 to your computer and use it in GitHub Desktop.
Config for service web font files with the correct mime type in IIS
<system.webServer>
<staticContent>
<remove fileExtension=".svg" />
<remove fileExtension=".svgz" />
<mimeMap fileExtension=".svg" mimeType="image/svg+xml" /> <!-- Scalable Vector Graphics iPhone, iPad -->
<mimeMap fileExtension=".svgz" mimeType="image/svg+xml" />
<mimeMap fileExtension=".woff" mimeType="application/x-font-woff" /> <!-- Web Open Font Format for Firefox -->
<mimeMap fileExtension=".ttf" mimeType="application/x-font-truetype" /> <!-- true type font for IE-->
<mimeMap fileExtension=".otf" mimeType="application/x-font-opentype" /> <!-- OpenType-->
<mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" /> <!-- embedded open type for IE -->
</staticContent>
</system.webServer>
@madaboutcode
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment