0

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?

thindery
  • 1,164
  • 4
  • 23
  • 40
  • I have narrowed this issue down to apparently an open type font vulnerability with windows 2003 servers. the font in question was an .otf font. when I tried a .ttf everything works perfectly. – thindery Apr 13 '12 at 14:01

3 Answers3

5

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".

Maxim V. Pavlov
  • 10,303
  • 17
  • 74
  • 174
  • 1
    this was it! Thanks. Had to add mime type to server and website via iss manager as outlined here http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/cd72c0dc-c5b8-42e4-96c2-b3c656f99ead.mspx?mfr=true – shaunw Aug 12 '12 at 12:23
2

Sometimes, windows server will allow this:

Put this in web.config

<system.webServer>
  ...
  <staticContent>
    <remove fileExtension=".woff" />
    <mimeMap fileExtension=".woff" mimeType="application/font-woff" />
  </staticContent>
</system.webServer>

Thumb this up!

Rum Jeremy
  • 502
  • 4
  • 15
0

Had the same issue on Windows 2003, updated the MIME type as suggested by Maxim V. Pavlov, recycled the App Pool in IIS and all works fine...

GBR84
  • 31
  • 5