- This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
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. :)
A link would be helpful.
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;
}
sorry for the trouble. I did not write the exact link for fonts..silly me. :(