Hi, got a font that im calling using the code below. Locally on my computer it works great but on upload it does not?? The "fonts"map is there, all the files are where they should be. Anyone know what´s wrong? /Dave
"I managed to get this working - I was adding all the content, including the <staticContent></staticContent> tags. In the web.config file.
<!-- HTML4 Web font mime types --> <!-- Remove default IIS mime type for .eot which is application/octet-stream --> <remove fileExtension=".eot" /> <mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" /> <mimeMap fileExtension=".otf" mimeType="font/otf" />
@font-face problem on upload but not locally?!?
Hi, got a font that im calling using the code below. Locally on my computer it works great but on upload it does not?? The "fonts"map is there, all the files are where they should be. Anyone know what´s wrong? /Dave
@font-face {
font-family: FuturaStd-Light;
src: url("../fonts/FuturaStd-Light.otf") format("opentype");
}
@font-face {
font-weight: bold;
font-family: FuturaStd-Light;
src: url('../fonts/FuturaStd-Light.otf')format("opentype");
}
Have you checked the MIME types on the server?
http://sebduggan.com/blog/serving-web-fonts-from-iis/
No that didnt work, but thank you for trying :)
This fixed it! :
"I managed to get this working - I was adding all the content, including the <staticContent></staticContent> tags. In the web.config file.
<!-- HTML4 Web font mime types -->
<!-- Remove default IIS mime type for .eot which is application/octet-stream -->
<remove fileExtension=".eot" />
<mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" />
<mimeMap fileExtension=".otf" mimeType="font/otf" />
<mimeMap fileExtension=".woff" mimeType="font/x-woff" />"
:)
So my suggestion did work; adding mime types is exactly what I suggested, right?
is working on a reply...