Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dave 14 posts 34 karma points
    Aug 28, 2013 @ 09:02
    Dave
    0

    @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");

    }

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Aug 28, 2013 @ 09:22
    Stefan Kip
    0

    Have you checked the MIME types on the server?

    http://sebduggan.com/blog/serving-web-fonts-from-iis/

  • Dave 14 posts 34 karma points
    Aug 31, 2013 @ 19:20
    Dave
    0

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

     

    :)

  • Stefan Kip 1614 posts 4131 karma points c-trib
    Sep 02, 2013 @ 09:13
    Stefan Kip
    0

    So my suggestion did work; adding mime types is exactly what I suggested, right?

Please Sign in or register to post replies

Write your reply to:

Draft