1

both font works locally but on server elkwood works and avenir doesn't work i got no idea why. please see image

i also tried font-family: "AvenirNextLTPro-Regular"; src: url( "/fonts/AvenirNextLTPro-Regular.otf" );

screenshot details

Mark
  • 35
  • 7
  • could you add other formats of your font to your font folder? and make all format same as each other for example .ttf – Pooria Jan 02 '16 at 21:09

1 Answers1

5

IIS does not know to serve the request for .otf files. We need to explicitly tell IIS that these are valid file types. To do that, Add this section to your web.config under <system.webServer> section.

<staticContent>    
  <mimeMap fileExtension=".otf" mimeType="font/otf" />
</staticContent>
Shyju
  • 214,206
  • 104
  • 411
  • 497