Search code examples
wordpressfontswindows-server-2003font-face

@font-face not working on windows server?


I developed a wordpress theme for a client on my test server which is running linux. the @font-face loaded the .otf and rendered the text correctly in this instance. It worked on multiple computers.

But now when I install this theme on a client's wordpress, running on windows server 2003, it doesn't load the font on any computer.

Any ideas?


Solution

  • IIS in not sending the .otf with a proper MIME type set, that is why it is not working. You need to configure IIS MIME types to respond to .otf files as "font/opentype".