HangrySoT/Hangry

Font files not accessible on azure

Opened this issue · 1 comments

Probably explains why we get 404s when querying fonts.

Eg: http://hanger.azurewebsites.net/fonts/Calibre-Bold.otf

Looks like I was jumping to conclusions earlier. IIS on Azure might need additional config to properly server otf font files http://stackoverflow.com/questions/13391086/otf-font-not-being-deployed-to-azure

You probably need to configure the IIS to properly serve this file type. You do this by adding the following to the <system.webServer> element in Web.config:

<staticContent>
    <mimeMap fileExtension=".otf" mimeType="font/otf" />
</staticContent>
`