This, of course, I am doing something really stupid, but I do not see it. I am trying to use FontAwesome as a font family in my css, but it doesn't seem to work.
With a minimal code, I have:
<head>
<link href="assets/css/font-awesome.css" rel="stylesheet">
<style>
body {
font-family: FontAwesome;
}
</style>
</head>
<body>
Test FontAwesome!
</body>
This manifests itself clearly as Times New Roman.
The FontAwesome font itself is stored in assets / font /, and font-awesome.css has the following @font-face:
@font-face {
font-family: 'FontAwesome';
src: url('../font/fontawesome-webfont.eot?v=3.0.1');
src: url('../font/fontawesome-webfont.eot?#iefix&v=3.0.1') format('embedded-opentype'),
url('../font/fontawesome-webfont.woff?v=3.0.1') format('woff'),
url('../font/fontawesome-webfont.ttf?v=3.0.1') format('truetype');
font-weight: normal;
font-style: normal;
}
Changing ..to assetsgives an obvious error that it cannot find the font, so I'm sure the relative path is just fine and dandy. If I change it to font-family: FontAwesome,Arial;, it uses Arial. It is clear that he cannot find FontAwesome, and I do not know why.
Any specific reason why I cannot change my body font to FontAwesome?