Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: font-face

  1. #1
    New to the CF scene
    Join Date
    Jul 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    font-face

    I have a font that I need to use on a page, I have ran it through fontsquirral to get the webkit for this font and in my CSS I have:

    @font-face {
    font-family: 'vegurregular';
    src: url('vegur-regular-webfont.eot');
    src: url('vegur-regular-webfont.eot?#iefix') format('embedded-opentype'),
    url('vegur-regular-webfont.woff') format('woff'),
    url('vegur-regular-webfont.ttf') format('truetype'),
    url('vegur-regular-webfont.svg#vegurregular') format('svg');
    font-weight: normal;
    font-style: normal;

    }

    .homenews p {font-family: vegurregular;}

    This isn't working and I have tried other various methods too and also an alternative font (myriad pro) but with no success, any help please?

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,471
    Thanks
    6
    Thanked 980 Times in 953 Posts
    You need to change the file paths to the location of the font files, of course. I suppose you haven’t done this or placed your font files somewhere else.

  • #3
    New to the CF scene
    Join Date
    Jul 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by VIPStephan View Post
    You need to change the file paths to the location of the font files, of course. I suppose you havenít done this or placed your font files somewhere else.
    The font files are in the same directory as the style.css so this path should be sufficient, shouldn't it?


  •  

    Posting Permissions

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