Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS problem in font-face

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #147782
    Nishant
    Participant

    hi! I had a minor problem. I used font-face to add a font “aller”. I put it on body with backup fonts but it is not working. Browsers are ignoring it and choosing backup fonts. If i put this font “aller” alone, then it is working fine in whole page. So, where’s the problem? Am i doing something wrong by putting font-face in body? Or, font-face fonts should be written alone without any backup? Hope to get response soon. Thanks. :)

    #147783
    Paulie_D
    Member

    A link would be helpful.

    #147786
    Nishant
    Participant

    may be this helps…http://codepen.io/anon/pen/AuzmB
    it is catching that font..
    below is a code of my font stylesheets..
    @font-face {
    font-family: ‘allerregular’;
    src: url(‘assets/fonts/aller_rg-webfont.eot’);
    src: url(‘assets/fonts/aller_rg-webfont.eot?#iefix’) format(’embedded-opentype’),
    url(‘assets/fonts/aller_rg-webfont.woff’) format(‘woff’),
    url(‘assets/fonts/aller_rg-webfont.ttf’) format(‘truetype’),
    url(‘assets/fonts/aller_rg-webfont.svg#allerregular’) format(‘svg’);
    font-style: normal;

    }

    #147792
    Nishant
    Participant

    sorry for the trouble. I did not write the exact link for fonts..silly me. :(

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.