Hey there,
I am trying to add custom fonts to my page but I am getting some errors.
Using the @font-face rule I have tried 2 solutions but neither have worked so far.
A. using this CSS
@font-face {
font-family: ‘nameOfFont’;
src: url(url-of-where-your-fonts-are-on-your-server.ttf);
}
@font-face {
font-family: ‘nameOfFont IE’;
src: url(url-of-where-your-fonts-are-on-your-server.eot);
}
.nameOfClass {
font-family: ‘nameOfFont’, ‘nameOfFont IE’, sans-serif;
}
B. Using this same CSS but adding it to an external CSS file and using the @import rule to import the CSS.
You can check the errors using ‘inspect element’ and see them in the console.
As always, any help is greatly appreciated!
Cheers
Best answer by erayner
View original