Created
August 26, 2013 08:13
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From one of the comments here : http://sebduggan.com/blog/serving-web-fonts-from-iis/