Skip to content

Instantly share code, notes, and snippets.

@smockle
Created April 8, 2013 19:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smockle/5339796 to your computer and use it in GitHub Desktop.
Save smockle/5339796 to your computer and use it in GitHub Desktop.
Fonts is a web fonts example.
/* Add the following to web.config:
* <system.webServer>
* <staticContent>
* <remove fileExtension=".ttf" />
* <mimeMap fileExtension=".ttf" mimeType="application/x-font-ttf" />
* <remove fileExtension=".woff" />
* <mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />
* <remove fileExtension=".svg" />
* <mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
* </staticContent>
* </system.webServer>
*/
@font-face {
font-family: "Segoe UI";
font-weight: normal;
font-style: normal;
src: url("segoeui.eot"); /* IE9 Compat Modes */
src: url("segoeui.eot?iefix") format("embedded-opentype"), /* IE6-IE8 */
url("segoeui.ttf") format("truetype"), /* Safari, Android, iOS */
url("segoeui.woff") format("woff"), /* Modern Browsers */
url("segoeui.svg#segoeui") format("svg"); /* Legacy iOS */
}
@font-face {
font-family: "Segoe UI";
font-weight: normal;
font-style: italic;
src: url("segoeuii.eot"); /* IE9 Compat Modes */
src: url("segoeuii.eot?iefix") format("embedded-opentype"), /* IE6-IE8 */
url("segoeuii.ttf") format("truetype"), /* Safari, Android, iOS */
url("segoeuii.woff") format("woff"), /* Modern Browsers */
url("segoeuii.svg#segoeui") format("svg"); /* Legacy iOS */
}
@font-face {
font-family: "Segoe UI";
font-weight: bold;
font-style: normal;
src: url("segoeuib.eot"); /* IE9 Compat Modes */
src: url("segoeuib.eot?iefix") format("embedded-opentype"), /* IE6-IE8 */
url("segoeuib.ttf") format("truetype"), /* Safari, Android, iOS */
url("segoeuib.woff") format("woff"), /* Modern Browsers */
url("segoeuib.svg#segoeui") format("svg"); /* Legacy iOS */
}
@font-face {
font-family: "Segoe UI";
font-weight: bold;
font-style: italic;
src: url("segoeuiz.eot"); /* IE9 Compat Modes */
src: url("segoeuiz.eot?iefix") format("embedded-opentype"), /* IE6-IE8 */
url("segoeuiz.ttf") format("truetype"), /* Safari, Android, iOS */
url("segoeuiz.woff") format("woff"), /* Modern Browsers */
url("segoeuiz.svg#segoeui") format("svg"); /* Legacy iOS */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment