SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2008
    Location
    Melbourne, Australia
    Posts
    47
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation @font-face not working

    I have done a small personal site and have used @font-face. They show up perfectly on the computer, but now I have uploaded the
    site, the font is not showing at all. Any ideas?

    My css -



    @font-face {
    font-family: "texg";
    src: url("fonts/texg-Regular-webfont.eot"); /* IE8 and below */
    }

    @font-face {
    font-family: "texg";
    src: url("fonts/texg-Regular-webfont.svg") format("svg");
    }

    @font-face {
    font-family: "texg";
    src: url("fonts/texg-Regular-webfont.ttf") format("truetype");
    }

    @font-face {
    font-family: "texg";
    src: url("fonts/texg-Regular-webfont.woff") format("woff");
    }

    body {
    font-family: "texg";
    }

    Sorry, for some reason when I click on "syntax" in the thread box, I get nothing.

    Any help appreciated.
    Thanks,
    Vicki

  2. #2
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,806
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    Hi Vicki
    Perhaps a daft question but we have all done it; did you upload all the font files and into the right folders for the paths?!
    Is the site online where we can have a look?
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....

  3. #3
    SitePoint Enthusiast
    Join Date
    Jul 2008
    Location
    Melbourne, Australia
    Posts
    47
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey your good. Went and rechecked everything. Turns out I had a capital R in the name of the font, instead of a small r. All fixed.

    Thank you.

    Vicki

  4. #4
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,806
    Mentioned
    158 Post(s)
    Tagged
    3 Thread(s)
    awesome, yup done that too!
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •