Welcome to WebDesignForums.net!
You're currently viewing WDF as a guest. By registering for a free account, you'll be able to participate with other members in our friendly community. Being a member allows you to ask questions and get answers for those troublesome web development tasks!

In addition, as a member you'll be able to post your websites up for review. Using our unique website review system you can gain some amazing feedback from some of the best web developers around. This is a completely free service to all registered members.

Ready to register yet? Registration is 100% free. Click Here To Join Now!

@font-face and firefox

Discussion in 'HTML and CSS Help' started by guillaumeb, Dec 12, 2010.

  1. Offline

    guillaumeb New Member

    Message Count:
    24
    Likes Received:
    0
    Trophy Points:
    1
    hello,

    Like many people i'm experiencing a problem with @font face and Firefox.

    i'm basically using two otf fonts for mywebsite.com. Thos fonts are stored on the SAME domain.

    my stylesheet is located at
    mywebsite.com/css/style.css

    I have uploaded those fonts at:
    mywebsite.com/...
    mywebsite.com/css/...
    mywebsite.com/css/fonts/...

    but Firefox simply can't see them. I've tried all paths in my code below but it simply won't work. I though most problems with Firefox came from hosting a font on another domain.

    Note that it does work in Chrome and Safari

    Code:
    @font-face { font-family: Quicksand;src: local("Georgia"), src: url("/fonts/ql.otf") format("opentype") ; } 
    
    @font-face { font-family: JosefinSansStd-Light;src: local("Lucida Grande"), src: url("/fonts/JosefinSansStd-Light.otf") format("opentype"); } 
    Any ideas ? thank you very much


  2. Offline

    guillaumeb New Member

    Message Count:
    24
    Likes Received:
    0
    Trophy Points:
    1
    By the way, i tried to add and remove " and ' around font names and path
    Also this code is both on the css file as well as in the head of the HTML page


  3. Offline

    etm New Member

    Message Count:
    76
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Calgary, Canada

    I am pretty sure (with exception to recent Safari releases) that you have to use Embedded Open Type (.eot) fonts.

    Here are a couple services that allow you to be more creative in the type department, without worrying about serving the fonts yourself and whether you might be breaking copyright doing so. Many fonts do not permit distribution.

    http://code.google.com/webfonts (free)

    http://typekit.com/ (for a fee, but large selection)


Share This Page