How to include a non-standard font-face in azure?
Thanks @Seva Titov, I had the same problem, after selecting "Content" under the Build Action on the properties, it worked like a charm!
For those of you who are pushing something to azure and are NOT familiar with the web config or on a non .net language you can still CREATE a web.config.
Step 1: Best practices, You shouldn't do this on a real live server:
- Step 1: Enable 'Edit in Visual Studio Online'
- Portal -> Websites -> Your Website -> Configure tab
- Set Edit in visual studio Online to On (NOTE THE WARNING)
- Save
Step 2: Create a new file in the root of your directory titled 'web.config' It should contain the following:
<?xml version="1.0" encoding="utf-8"?><configuration> <system.webServer> <staticContent> <remove fileExtension=".woff" /> <!-- In case IIS already has this mime type --> <mimeMap fileExtension=".woff" mimeType="application/x-font-woff" /> </staticContent> </system.webServer></configuration>
For your custom font add
<staticContent> <mimeMap fileExtension=".woff" mimeType="font/woff" /></staticContent>
to <system.webServer>
section of Web.config