This is a very frustrating bug!
I am using Font Awesome (hosted locally) and a couple of other fonts, and they are intermittently failing to load - not 404ing, just completely failing to appear in the Network tab of Developer Tools, and not being rendered on the page.
It seems to happen most often the first time the page is loaded - on a refresh the fonts then load/render OK. However, clearing the browser cache does not reliably reproduce the issue.
I know the paths are OK, because the fonts are rendering OK about 80% of the time. This is an intermittent issue. I am using Chrome v26 on OSX.
My CSS looks like this:
<head>
...
<link rel="stylesheet" type="text/css" href="${context}/resources/font/opensans.css" />
<link rel="stylesheet" type="text/css" href="${context}/resources/css/font-awesome.min.css" />
...
And the CSS files look like this:
@font-face {
font-family: 'open_sanslight';
src: url('opensans-light-webfont.eot');
src: url('opensans-light-webfont.eot?#iefix') format('embedded-opentype'),
url('opensans-light-webfont.woff') format('woff'),
url('opensans-light-webfont.ttf') format('truetype'),
url('opensans-light-webfont.svg#open_sanslight') format('svg');
font-weight: normal;
font-style: normal;
}
Once more, the paths are correct (as evidenced by the fact that the fonts do render correctly about 80% of the time).
What can possibly be going on?