Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Properly link font-face in theme css
#1
hi,

I've got a question about using font-face in a theme's css. On Bahia Arabians, I'm trying to implement some font-face. But it doesn't seem to work. Undecided

Is it even possible to add some font-face to the CMS? I've used this code:
Code:
@font-face {
    font-family: book_antiquaregular;
    src: url(../fonts/566-webfont.eot);
    src: url(../fonts/566-webfont.eot?#iefix) format(embedded-opentype),
         url(../fonts/566-webfont.woff) format(woff),
         url(../fonts/566-webfont.ttf) format(truetype),
         url(../fonts/566-webfont.svg#book_antiquaregular) format(svg);
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: book_antiquabold;
    src: url(../fonts/567-webfont.eot);
    src: url(../fonts/567-webfont.eot?#iefix) format(embedded-opentype),
         url(../fonts/567-webfont.woff) format(woff),
         url(../fonts/567-webfont.ttf) format(truetype),
         url(../fonts/567-webfont.svg#book_antiquabold) format(svg);
    font-weight: normal;
    font-style: normal;

}

to call upon the font-face. The fonts are located in: theme >> minimalism >> fonts

The reason why I used this path, is because the CSS is also getting images out of: theme >> minimalism >> images, so I thought this would work to.

Thanks in advance! Big Grin
Reply


Messages In This Thread
Properly link font-face in theme css - by Vlinder Design - 2013-05-27, 22:46:10



Users browsing this thread: 1 Guest(s)